projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb1c84
)
Missing clear of some IO state
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 19 Feb 2007 18:06:41 +0000
(19:06 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 19 Feb 2007 18:06:41 +0000
(19:06 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index 3c64b7b7cab87a1eb0a40d342bb410244a3b360f..6176b77a22d2cf54147e03da51684bdb431d2d30 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-597,7
+597,11
@@
static void clear_io_state(struct thread_data *td)
td->this_io_bytes[0] = td->this_io_bytes[1] = 0;
td->zone_bytes = 0;
+ td->last_was_sync = 0;
+
for_each_file(td, f, i) {
+ f->last_completed_pos = 0;
+
f->last_pos = 0;
if (td->io_ops->flags & FIO_SYNCIO)
lseek(f->fd, SEEK_SET, 0);