From: webee Date: Fri, 23 Mar 2012 12:41:41 +0000 (+0100) Subject: verify: verify bytes should not add to this_io_bytes X-Git-Tag: fio-2.0.7~12 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ae2fafc8525e980b8271e3230a0fd4da660fddda;hp=10b023db64eeb686eabdfa84faea45795ac8c34c 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 --- 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;