From: Jens Axboe Date: Mon, 19 Feb 2007 12:21:35 +0000 (+0100) Subject: Verify requeue handling X-Git-Tag: fio-1.12~64 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d2d7fa53c18f1fc3fb89f3fe20df9b39986bde72 Verify requeue handling If file is already filled, it's a requeue. In that case, don't grab a new io_piece, we already filled the offsets in the io_u. Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index f2ef1079..6cbd0add 100644 --- a/verify.c +++ b/verify.c @@ -143,6 +143,12 @@ int get_next_verify(struct thread_data *td, struct io_u *io_u) { struct io_piece *ipo; + /* + * this io_u is from a requeue, we already filled the offsets + */ + if (io_u->file) + return 0; + if (!list_empty(&td->io_hist_list)) { ipo = list_entry(td->io_hist_list.next, struct io_piece, list);