ioengine: don't account verify bytes
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 03:24:54 +0000 (20:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 03:24:54 +0000 (20:24 -0700)
If we do that, we can terminate early for a readwrite+verify
backlog workload.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
ioengines.c

index 02eaee8484938d0e6310b1238e690ecda08dd3c6..7951ff32e25c3e5090ebbc212731c6e0e86648a4 100644 (file)
@@ -309,8 +309,10 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u)
        }
 
        if (ddir_rw(ddir)) {
-               td->io_issues[ddir]++;
-               td->io_issue_bytes[ddir] += buflen;
+               if (!(io_u->flags & IO_U_F_VER_LIST)) {
+                       td->io_issues[ddir]++;
+                       td->io_issue_bytes[ddir] += buflen;
+               }
                td->rate_io_issue_bytes[ddir] += buflen;
        }