From 4d2e0f49006af315ec8653008938bc51f2a0ddac Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 24 Feb 2007 13:31:57 +0100 Subject: [PATCH] Requeue io_u flags fix We need to clear IO_U_F_FLIGHT and set IO_U_F_FREE in requeue. Signed-off-by: Jens Axboe --- io_u.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/io_u.c b/io_u.c index 53e57b4f..372f46a0 100644 --- a/io_u.c +++ b/io_u.c @@ -211,6 +211,9 @@ void requeue_io_u(struct thread_data *td, struct io_u **io_u) { struct io_u *__io_u = *io_u; + __io_u->flags |= IO_U_F_FREE; + __io_u->flags &= ~IO_U_F_FLIGHT; + list_del(&__io_u->list); list_add_tail(&__io_u->list, &td->io_u_requeues); td->cur_depth--; -- 2.25.1