From 94c6372c7332b69e4f308e46614a6952695fa86c Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Wed, 10 Oct 2012 08:15:58 -0600 Subject: [PATCH] Add pending IO to the tail of the busy list We add at the head now. The windowsaio engine completes from the head of the list, so lets ensure that we wait and complete closer to the submit order. Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_u.c b/io_u.c index a2c583df..e047677e 100644 --- a/io_u.c +++ b/io_u.c @@ -1096,7 +1096,7 @@ again: io_u->error = 0; flist_del(&io_u->list); - flist_add(&io_u->list, &td->io_u_busylist); + flist_add_tail(&io_u->list, &td->io_u_busylist); td->cur_depth++; io_u->flags |= IO_U_F_IN_CUR_DEPTH; } else if (td->o.verify_async) { -- 2.25.1