projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop obsolete comment on a race condition
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index eb28826698811058a317fa6544b92bd8f388a368..e9976eb17a879ee3c98f51f45dc3b0746f23f3f5 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-375,10
+375,12
@@
static int get_file_size(struct thread_data *td, struct fio_file *f)
else if (f->filetype == FIO_TYPE_CHAR)
ret = char_size(td, f);
else
else if (f->filetype == FIO_TYPE_CHAR)
ret = char_size(td, f);
else
- f->real_file_size = -1;
+ f->real_file_size = -1
ULL
;
- if (ret)
+ if (ret) {
+ f->real_file_size = -1ULL;
return ret;
return ret;
+ }
if (f->file_offset > f->real_file_size) {
log_err("%s: offset extends end (%llu > %llu)\n", td->o.name,
if (f->file_offset > f->real_file_size) {
log_err("%s: offset extends end (%llu > %llu)\n", td->o.name,
@@
-498,9
+500,6
@@
int file_lookup_open(struct fio_file *f, int flags)
__f = lookup_file_hash(f->file_name);
if (__f) {
dprint(FD_FILE, "found file in hash %s\n", f->file_name);
__f = lookup_file_hash(f->file_name);
if (__f) {
dprint(FD_FILE, "found file in hash %s\n", f->file_name);
- /*
- * racy, need the __f->lock locked
- */
f->lock = __f->lock;
from_hash = 1;
} else {
f->lock = __f->lock;
from_hash = 1;
} else {