projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fd1896
)
Clear f on error get_next_file_rr()
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 20 May 2009 08:45:12 +0000
(10:45 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 20 May 2009 08:45:12 +0000
(10:45 +0200)
Otherwise we could return an invalid non-open file and trigger and
assertion failure later in the process.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index fc49bd325879f01d63c53efaaff25cc0e34e63e2..1e9018c4f6ee85bc5362aea312b9b2ec15a15978 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-686,6
+686,7
@@
static struct fio_file *get_next_file_rr(struct thread_data *td, int goodf,
if (err) {
dprint(FD_FILE, "error %d on open of %s\n",
err, f->file_name);
+ f = NULL;
continue;
}
opened = 1;