From cd8a19e614013dbdbc9ad3c7fe5c9d861a6a6834 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 16 Jan 2015 10:06:02 -0700 Subject: [PATCH] ioengine: if we get BUSY in queuing, adjust accounting Signed-off-by: Jens Axboe --- ioengines.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ioengines.c b/ioengines.c index 88f67d51..00098d67 100644 --- a/ioengines.c +++ b/ioengines.c @@ -303,6 +303,11 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) unlock_file(td, io_u->file); + if (ret == FIO_Q_BUSY && ddir_rw(acct_ddir(io_u))) { + td->io_issues[acct_ddir(io_u)]--; + td->io_issue_bytes[acct_ddir(io_u)] -= io_u->xfer_buflen; + } + /* * If an error was seen and the io engine didn't propagate it * back to 'td', do so. -- 2.25.1