From: Jens Axboe Date: Fri, 4 Sep 2009 18:53:53 +0000 (+0200) Subject: Don't assume read IO are always verifies if verify is enabled X-Git-Tag: fio-1.33~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=715d2b3e02834232154604b91de1f9db53572a77;p=fio.git Don't assume read IO are always verifies if verify is enabled If it's a mixed read/write workload, we're likely just wanting to verify the writes we do. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index dfd15e0f..3a9a3bad 100644 --- a/fio.c +++ b/fio.c @@ -606,7 +606,8 @@ static void do_io(struct thread_data *td) * Add verification end_io handler, if asked to verify * a previously written file. */ - if (td->o.verify != VERIFY_NONE && io_u->ddir == DDIR_READ) { + if (td->o.verify != VERIFY_NONE && io_u->ddir == DDIR_READ && + !td_rw(td)) { if (td->o.verify_async) io_u->end_io = verify_io_u_async; else