Skip to content

Commit

Permalink
tests: don't expect multishot recv overflow backlogging
Browse files Browse the repository at this point in the history
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]>
Link: https://lore.kernel.org/r/d078c0f797322bd01d8c91743d652b734e83e9ba.1691758633.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
isilence authored and axboe committed Aug 11, 2023
1 parent e1e758a commit b73e940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/recv-multishot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit b73e940

Please sign in to comment.