From e4dad9c614d7f6842b0efefbae3ca0fa540cad0a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 28 May 2008 10:53:44 +0200 Subject: [PATCH] Fix refill buffers overwriting verify data Signed-off-by: Jens Axboe --- io_u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_u.c b/io_u.c index b10e83ee..04900ee1 100644 --- a/io_u.c +++ b/io_u.c @@ -818,6 +818,8 @@ struct io_u *get_io_u(struct thread_data *td) if (td->o.verify != VERIFY_NONE) populate_verify_io_u(td, io_u); + else if (td->o.refill_buffers && io_u->ddir == DDIR_WRITE) + io_u_fill_buffer(td, io_u, io_u->xfer_buflen); } /* @@ -827,8 +829,6 @@ struct io_u *get_io_u(struct thread_data *td) io_u->xfer_buf = io_u->buf; io_u->xfer_buflen = io_u->buflen; - if (td->o.refill_buffers && io_u->ddir == DDIR_WRITE) - io_u_fill_buffer(td, io_u, io_u->xfer_buflen); out: if (!td_io_prep(td, io_u)) { fio_gettime(&io_u->start_time, NULL); -- 2.25.1