From 069c29183fb55f467ba841959ba6731f3e4f2132 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 21 Feb 2007 23:02:39 +0100 Subject: [PATCH] Still need to put io_u on early exit The previous fix was too drastic, if we don't put the io_u on early exit, cleanup_pending_aio() will stall forever waiting for it. Signed-off-by: Jens Axboe --- fio.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/fio.c b/fio.c index 75c2c869..9594f805 100644 --- a/fio.c +++ b/fio.c @@ -248,15 +248,20 @@ static void do_verify(struct thread_data *td) if (!io_u) break; - if (runtime_exceeded(td, &io_u->start_time)) + if (runtime_exceeded(td, &io_u->start_time)) { + put_io_u(td, io_u); break; + } - if (get_next_verify(td, io_u)) + if (get_next_verify(td, io_u)) { + put_io_u(td, io_u); break; + } - if (td_io_prep(td, io_u)) + if (td_io_prep(td, io_u)) { + put_io_u(td, io_u); break; - + } requeue: ret = td_io_queue(td, io_u); -- 2.25.1