From: Jens Axboe Date: Mon, 19 Feb 2007 19:13:09 +0000 (+0100) Subject: Be safe and re-prep requeue io_u's X-Git-Tag: fio-1.12~60 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=77f392bf28b1eafbece08df6c066440a838499a1;p=fio.git Be safe and re-prep requeue io_u's Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 7e5bfcc1..4f4865b2 100644 --- a/io_u.c +++ b/io_u.c @@ -379,7 +379,7 @@ struct io_u *get_io_u(struct thread_data *td) * from a requeue, io_u already setup */ if (io_u->file) - return io_u; + goto out; f = get_next_file(td); if (!f) { @@ -423,6 +423,7 @@ struct io_u *get_io_u(struct thread_data *td) /* * Set io data pointers. */ +out: io_u->xfer_buf = io_u->buf; io_u->xfer_buflen = io_u->buflen;