From 77f392bf28b1eafbece08df6c066440a838499a1 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 19 Feb 2007 20:13:09 +0100 Subject: [PATCH] Be safe and re-prep requeue io_u's Signed-off-by: Jens Axboe --- io_u.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.25.1