From: Bruce Cran Date: Wed, 10 Oct 2012 14:15:58 +0000 (-0600) Subject: Add pending IO to the tail of the busy list X-Git-Tag: fio-2.0.10~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=94c6372c7332b69e4f308e46614a6952695fa86c;p=fio.git 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 --- 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) {