X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=backend.c;h=7343286d53219b0c8d4e8a44ec586f1cd66ac6b8;hb=591e9e0653dd8f5d8464b2896434a01ab742a3b1;hp=814d244cadf241028efdf268692201ce6c9a84aa;hpb=f7078f7b517ace62bdf22967c18525b5b6c68b85;p=fio.git diff --git a/backend.c b/backend.c index 814d244c..7343286d 100644 --- a/backend.c +++ b/backend.c @@ -586,11 +586,12 @@ static void do_io(struct thread_data *td) ddir = io_u->ddir; /* - * Add verification end_io handler, if asked to verify - * a previously written file. + * Add verification end_io handler if: + * - Asked to verify (!td_rw(td)) + * - Or the io_u is from our verify list (mixed write/ver) */ if (td->o.verify != VERIFY_NONE && io_u->ddir == DDIR_READ && - !td_rw(td)) { + ((io_u->flags & IO_U_F_VER_LIST) || !td_rw(td))) { if (td->o.verify_async) io_u->end_io = verify_io_u_async; else