From: Jens Axboe Date: Fri, 1 Dec 2017 04:48:12 +0000 (-0700) Subject: io_u: don't account io issue blocks for verify backlog X-Git-Tag: fio-3.3~29 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e1c325d25dd977c28c9489c542a51ee05dfc620e io_u: don't account io issue blocks for verify backlog We don't account the bytes, we should not account the blocks either. Fixes: ae2fafc8 ("verify: verify bytes should not add to this_io_bytes") Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 6bb9eabf..44933a18 100644 --- a/io_u.c +++ b/io_u.c @@ -1977,11 +1977,12 @@ static void io_completed(struct thread_data *td, struct io_u **io_u_ptr, int ret; td->io_blocks[ddir]++; - td->this_io_blocks[ddir]++; td->io_bytes[ddir] += bytes; - if (!(io_u->flags & IO_U_F_VER_LIST)) + if (!(io_u->flags & IO_U_F_VER_LIST)) { + td->this_io_blocks[ddir]++; td->this_io_bytes[ddir] += bytes; + } if (ddir == DDIR_WRITE) file_log_write_comp(td, f, io_u->offset, bytes);