Use 0 timeout for command completion peek
[fio.git] / fio.c
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);