From ae2fafc8525e980b8271e3230a0fd4da660fddda Mon Sep 17 00:00:00 2001 From: webee Date: Fri, 23 Mar 2012 13:41:41 +0100 Subject: [PATCH] verify: verify bytes should not add to this_io_bytes When rw=readwrite,verify+backlog, the verify are treated as normal read, and bytes are added to this_io_bytes, cause fio terminate early. Signed-off-by: Jens Axboe --- io_u.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io_u.c b/io_u.c index a4f378d8..66463328 100644 --- a/io_u.c +++ b/io_u.c @@ -1381,7 +1381,9 @@ static void io_completed(struct thread_data *td, struct io_u *io_u, td->io_blocks[idx]++; td->this_io_blocks[idx]++; td->io_bytes[idx] += bytes; - td->this_io_bytes[idx] += bytes; + + if (!(io_u->flags & IO_U_F_VER_LIST)) + td->this_io_bytes[idx] += bytes; if (idx == DDIR_WRITE) { f = io_u->file; -- 2.25.1