engines/io_uring: don't set CQSIZE clamp unconditionally
authorJens Axboe <axboe@kernel.dk>
Mon, 10 Jan 2022 02:34:27 +0000 (19:34 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Jan 2022 02:34:27 +0000 (19:34 -0700)
commitb5e99df6ec605b4dc6a3488203f32d5c5bfce8df
treef0d7bf5a331405f7eb2e189e90aaf0df0b42ba25
parenta3e33e2fc06582e4170f90ae6e62d6225d52dc7c
engines/io_uring: don't set CQSIZE clamp unconditionally

For older kernels without IORING_SETUP_CQSIZE, we'll get EINVAL if we
set it. Just retry the ring setup if that happens.

Link: https://github.com/axboe/fio/issues/1324
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c