public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: [email protected]
Cc: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing] tests: don't expect multishot recv overflow backlogging
Date: Fri, 11 Aug 2023 13:58:30 +0100	[thread overview]
Message-ID: <d078c0f797322bd01d8c91743d652b734e83e9ba.1691758633.git.asml.silence@gmail.com> (raw)

Multishots may and are likely to complete when there is no space in CQ,
don't rely on overflows.

Signed-off-by: Pavel Begunkov <[email protected]>
---
 test/recv-multishot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/recv-multishot.c b/test/recv-multishot.c
index e4a07ce..f66f131 100644
--- a/test/recv-multishot.c
+++ b/test/recv-multishot.c
@@ -271,7 +271,7 @@ static int test(struct args *args)
 		 */
 		bool const early_last = args->early_error == ERROR_EARLY_OVERFLOW &&
 					!args->wait_each &&
-					i == N_CQE_OVERFLOW &&
+					i >= N_CQE_OVERFLOW &&
 					!(cqe->flags & IORING_CQE_F_MORE);
 
 		bool const should_be_last =
-- 
2.41.0


             reply	other threads:[~2023-08-11 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-11 12:58 Pavel Begunkov [this message]
2023-08-11 16:43 ` [PATCH liburing] tests: don't expect multishot recv overflow backlogging Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d078c0f797322bd01d8c91743d652b734e83e9ba.1691758633.git.asml.silence@gmail.com \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox