From: Jens Axboe Date: Sat, 1 Mar 2008 14:22:32 +0000 (+0100) Subject: When retrieving a requeued IO, don't setup data pointers again X-Git-Tag: fio-1.20-rc1~30 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6ac7a3310ff8c21bb563939c8accec8c0d609109;hp=af4bab56db4f87410c491c356954bbb65171f94d 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 --- 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;