engines/libaio: reset 'wait_start' on non-EAGAIN
authorJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 14:48:54 +0000 (08:48 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 14:48:54 +0000 (08:48 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/libaio.c

index 6f625167e9b7d2f03350a72086fb67db1e421885..31c850e44d8ea65b4592c99a37273cb9466afd22 100644 (file)
@@ -255,9 +255,11 @@ static int fio_libaio_commit(struct thread_data *td)
                        ld->queued -= ret;
                        ring_inc(ld, &ld->tail, ret);
                        ret = 0;
+                       wait_start = 0;
                } else if (ret == -EINTR || !ret) {
                        if (!ret)
                                io_u_mark_submit(td, ret);
+                       wait_start = 0;
                        continue;
                } else if (ret == -EAGAIN) {
                        /*