aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-28 10:05:34 -0600
committerJens Axboe <axboe@kernel.dk>2024-03-28 10:05:34 -0600
commitc28878c52377f67b1e7a16c5e6a2bba1272cf870 (patch)
treecab366edcd70dc5b516ec0fff5732283f232bfa8
parent7849e85849a92f8aaf9564d908e000e415f10d4e (diff)
downloadliburing-c28878c52377f67b1e7a16c5e6a2bba1272cf870.tar.gz
test/send_recv: set IORING_SETUP_SUBMIT_ALL
The test_invalid() relies on both being submitted even though it encounters an error at prep time, and on newer kernels with the improved async setup, this means it'll only submit 1 of the 2 requests. Set IORING_SETUP_SUBMIT_ALL to tell the kernel to keep submitting, even in case of errors. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/send_recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/send_recv.c b/test/send_recv.c
index bcf073a1..eb11d96c 100644
--- a/test/send_recv.c
+++ b/test/send_recv.c
@@ -268,7 +268,7 @@ static int test_invalid(void)
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
- ret = t_create_ring(8, &ring, 0);
+ ret = t_create_ring(8, &ring, IORING_SETUP_SUBMIT_ALL);
if (ret)
return ret;