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 <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c
index 7ac31a0..faa1c5e 100644
--- a/io_u.c
+++ b/io_u.c
@@ -764,10 +764,9 @@
* 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;