t/io_uring: ensure batch counts are smaller or equal to depth
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Sep 2021 15:15:16 +0000 (09:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Sep 2021 15:15:16 +0000 (09:15 -0600)
commitc53476111d5ede61d24b3fa181fa2d19d3a3e6bc
treea7cb4999d57721e969a9a4fd14b6a3f16d997ff4
parentd9137307bc621280dcb1738e5df5d5ee4269a665
t/io_uring: ensure batch counts are smaller or equal to depth

If you use a batch submit or complete count that's larger than the
depth, then t/io_uring will stall. Make sure to sanitize the counts
so that any batch values is always <= total depth.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c