engines/libaio: fix wrong setting of wait_start
authorJens Axboe <axboe@fb.com>
Tue, 14 Oct 2014 18:17:00 +0000 (12:17 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 14 Oct 2014 18:17:00 +0000 (12:17 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/libaio.c

index 12f3b366d71be5c521a67d238878f0f3a947ad2d..f7e2f8967c8900a1d5c6839dda1d746df5986b60 100644 (file)
@@ -281,7 +281,7 @@ static int fio_libaio_commit(struct thread_data *td)
                        }
                        if (!wait_start) {
                                fio_gettime(&tv, NULL);
-                               wait_start = 0;
+                               wait_start = 1;
                        } else if (mtime_since_now(&tv) > 30000) {
                                log_err("fio: aio appears to be stalled, giving up\n");
                                break;