The following changes since commit 41dd12d62f43160bc8d8574127d0c2b861e1ee1d: options: fix 'kb_base' being of the wrong type (2018-11-25 09:56:06 -0700) are available in the git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to 4cf30b66c62f3f5e6501390d564cf0d966823591: workqueue: update IO counters promptly after handling IO (2018-11-26 09:16:52 -0700) ---------------------------------------------------------------- Vincent Fu (1): workqueue: update IO counters promptly after handling IO workqueue.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- Diff of recent changes: diff --git a/workqueue.c b/workqueue.c index faed245..b595951 100644 --- a/workqueue.c +++ b/workqueue.c @@ -190,8 +190,6 @@ static void *worker_thread(void *data) if (wq->wake_idle) pthread_cond_signal(&wq->flush_cond); } - if (wq->ops.update_acct_fn) - wq->ops.update_acct_fn(sw); pthread_cond_wait(&sw->cond, &sw->lock); } else { @@ -200,11 +198,10 @@ handle_work: } pthread_mutex_unlock(&sw->lock); handle_list(sw, &local_list); + if (wq->ops.update_acct_fn) + wq->ops.update_acct_fn(sw); } - if (wq->ops.update_acct_fn) - wq->ops.update_acct_fn(sw); - done: sk_out_drop(); return NULL;