X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=40d484b5c60a6ac281a2d6da5f328be3b15e3f0a;hb=b4b9665e89e2f6a25ca8e2b99207d95d4d7b5154;hp=c5fa24110143cb46cee4a6dad1db9a7e878c6a01;hpb=0f0346e0c8f9141ceea8a5de8264c635ea0cae9b;p=fio.git diff --git a/verify.c b/verify.c index c5fa2411..40d484b5 100644 --- a/verify.c +++ b/verify.c @@ -919,10 +919,9 @@ int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr) hdr = p; /* - * Make rand_seed check pass when have verifysort or - * verify_backlog. + * Make rand_seed check pass when have verify_backlog. */ - if (td->o.verifysort || (td->flags & TD_F_VER_BACKLOG)) + if (!td_rw(td) || (td->flags & TD_F_VER_BACKLOG)) io_u->rand_seed = hdr->rand_seed; if (td->o.verify != VERIFY_PATTERN_NO_HDR) {