From: Jens Axboe Date: Mon, 4 Feb 2008 09:56:07 +0000 (+0100) Subject: Decrement io_issue count when requeuing an io_u X-Git-Tag: fio-1.18~6 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e4f54adb2aa0aec54f92f3e67eb7353e229bef95 Decrement io_issue count when requeuing an io_u Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index bd7df0cf..511f2e9b 100644 --- a/io_u.c +++ b/io_u.c @@ -331,6 +331,9 @@ void requeue_io_u(struct thread_data *td, struct io_u **io_u) struct io_u *__io_u = *io_u; __io_u->flags |= IO_U_F_FREE; + if ((__io_u->flags & IO_U_F_FLIGHT) && (__io_u->ddir != DDIR_SYNC)) + td->io_issues[__io_u->ddir]--; + __io_u->flags &= ~IO_U_F_FLIGHT; list_del(&__io_u->list);