From 6ac7a3310ff8c21bb563939c8accec8c0d609109 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 1 Mar 2008 15:22:32 +0100 Subject: [PATCH 1/1] When retrieving a requeued IO, don't setup data pointers again This is a bug, if we had a residual data count we would be retrying the full request again. Signed-off-by: Jens Axboe --- io_u.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io_u.c b/io_u.c index 7ac31a0d..faa1c5e3 100644 --- a/io_u.c +++ b/io_u.c @@ -764,10 +764,9 @@ struct io_u *get_io_u(struct thread_data *td) * Set io data pointers. */ io_u->endpos = io_u->offset + io_u->buflen; -out: io_u->xfer_buf = io_u->buf; io_u->xfer_buflen = io_u->buflen; - +out: if (!td_io_prep(td, io_u)) { fio_gettime(&io_u->start_time, NULL); return io_u; -- 2.25.1