From e4db5bd917962ce3c4ccf2d88c908059e4ab15cb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 15 Jan 2019 10:58:17 -0700 Subject: [PATCH] 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 --- t/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1