From: Jens Axboe Date: Fri, 16 Jan 2015 17:06:02 +0000 (-0700) Subject: ioengine: if we get BUSY in queuing, adjust accounting X-Git-Tag: fio-2.2.5~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cd8a19e614013dbdbc9ad3c7fe5c9d861a6a6834;p=fio.git ioengine: if we get BUSY in queuing, adjust accounting Signed-off-by: Jens Axboe --- 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.