From 629f1d7150b142d146f8a3ee3cf0a08d1843ca2e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 9 Mar 2012 19:02:01 +0100 Subject: [PATCH 1/1] Honor refill_buffers even for verifies Signed-off-by: Jens Axboe --- io_u.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/io_u.c b/io_u.c index 06ca711b..ca33e589 100644 --- a/io_u.c +++ b/io_u.c @@ -1226,13 +1226,15 @@ struct io_u *get_io_u(struct thread_data *td) f->last_pos = io_u->offset + io_u->buflen; if (io_u->ddir == DDIR_WRITE) { - if (td->o.verify != VERIFY_NONE) - populate_verify_io_u(td, io_u); - else if (td->o.refill_buffers) { + if (td->o.refill_buffers) { io_u_fill_buffer(td, io_u, io_u->xfer_buflen, io_u->xfer_buflen); } else if (td->o.scramble_buffers) do_scramble = 1; + if (td->o.verify != VERIFY_NONE) { + populate_verify_io_u(td, io_u); + do_scramble = 0; + } } else if (io_u->ddir == DDIR_READ) { /* * Reset the buf_filled parameters so next time if the -- 2.25.1