io_uring: change ring size calculation for CQE32
authorStefan Roesch <shr@fb.com>
Tue, 26 Apr 2022 18:21:25 +0000 (11:21 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 May 2022 12:35:34 +0000 (06:35 -0600)
commitbaf9cb643b485d57c404b0ea9c1865036dde9eb7
tree9819b95225ed3768c8b7e0391525ea19c94e2b45
parent4e5bc0a9a1d0be5b20a0366fbfbe5a99d61c6003
io_uring: change ring size calculation for CQE32

This changes the function rings_size to take large CQE's into account.

Co-developed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Stefan Roesch <shr@fb.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20220426182134.136504-4-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c