From 765d92239dacbe0ecbe6459d37692a192083aac5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 28 Oct 2005 16:34:37 +0200 Subject: [PATCH] [PATCH] fio: async thinktime should be at the end --- fio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fio.c b/fio.c index 0364ffa..0819b42 100644 --- a/fio.c +++ b/fio.c @@ -770,9 +770,6 @@ static void do_async_io(struct thread_data *td) gettimeofday(&io_u->issue_time, NULL); add_slat_sample(td, mtime_since(&io_u->start_time, &io_u->issue_time)); - if (td->thinktime) - usec_sleep(td->thinktime); - if (td->cur_depth < td->aio_depth) { timeout = &ts; min_evts = 0; @@ -811,6 +808,9 @@ static void do_async_io(struct thread_data *td) if (runtime_exceeded(td, &e)) break; + + if (td->thinktime) + usec_sleep(td->thinktime); } if (td->cur_depth) -- 2.25.1