diff mbox series

[liburing] tests: don't expect multishot recv overflow backlogging

Message ID d078c0f797322bd01d8c91743d652b734e83e9ba.1691758633.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [liburing] tests: don't expect multishot recv overflow backlogging | expand

Commit Message

Pavel Begunkov Aug. 11, 2023, 12:58 p.m. UTC
Multishots may and are likely to complete when there is no space in CQ,
don't rely on overflows.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 test/recv-multishot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe Aug. 11, 2023, 4:43 p.m. UTC | #1
On Fri, 11 Aug 2023 13:58:30 +0100, Pavel Begunkov wrote:
> Multishots may and are likely to complete when there is no space in CQ,
> don't rely on overflows.
> 
> 

Applied, thanks!

[1/1] tests: don't expect multishot recv overflow backlogging
      commit: b73e940c9dd4ffa8ac121db046c0788376691b99

Best regards,
diff mbox series

Patch

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 =