[PATCH] fio: need to put io_u in submission failure path
authorJens Axboe <axboe@suse.de>
Tue, 25 Oct 2005 09:26:24 +0000 (11:26 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 25 Oct 2005 09:26:24 +0000 (11:26 +0200)
fio.c

diff --git a/fio.c b/fio.c
index c7b92c551bcc77c86f178a9a5b386ad321561bc1..af9754a7eab718955f95a01d5988b7595f64cfa5 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -653,6 +653,7 @@ static void do_async_io(struct thread_data *td)
 
                ret = io_u_queue(td, io_u);
                if (ret) {
+                       put_io_u(td, io_u);
                        td->error = errno;
                        break;
                }