io_u: don't account io issue blocks for verify backlog
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 04:48:12 +0000 (21:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 04:48:12 +0000 (21:48 -0700)
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 <axboe@kernel.dk>
io_u.c

diff --git a/io_u.c b/io_u.c
index 6bb9eab..44933a1 100644 (file)
--- 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);