From: Jens Axboe Date: Tue, 15 Jan 2019 17:58:17 +0000 (-0700) Subject: t/io_uring: wait if we're at queue limit X-Git-Tag: fio-3.13~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e4db5bd917962ce3c4ccf2d88c908059e4ab15cb t/io_uring: wait if we're at queue limit There was an off-by-one there, it's perfectly fine not to specify events to wait for if the submission will take us to the queue depth limit. Signed-off-by: Jens Axboe --- diff --git a/t/io_uring.c b/t/io_uring.c index 205769cf..78b92685 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -311,7 +311,7 @@ static void *submitter_fn(void *data) submit_more: to_submit = prepped; submit: - if (to_submit && (s->inflight + to_submit < DEPTH)) + if (to_submit && (s->inflight + to_submit <= DEPTH)) to_wait = 0; else to_wait = min(s->inflight + to_submit, BATCH_COMPLETE);