io_uring: clamp CQ size to SQ size
authorJens Axboe <axboe@kernel.dk>
Sat, 20 Nov 2021 14:27:57 +0000 (07:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 Nov 2021 14:27:57 +0000 (07:27 -0700)
commit1db268db68823f0fa4c4a4701d3deee88b4c1d84
tree10092bc42b53f1467e59e8ffea2032ca6997c468
parentbeda9d8d9e9148ff34eaa0eeb0cde19a36f47494
io_uring: clamp CQ size to SQ size

By default, io_uring uses twice as big a CQ ring as the SQ ring. That's
to help with cases where completions can come in unexpectedly. This is not
the case for storage IO, so just clamp the CQ size to save a bit of memory
on the CQEs and CQ ring.

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