]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: deduplicate array_size in io_allocate_scq_urings
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Oct 2025 13:23:17 +0000 (14:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Oct 2025 16:37:56 +0000 (10:37 -0600)
commit12aced0a551e18f2162091e388c3a36ea75ccb13
treedc3058de5b98ad3bd1b057cab7cbaf76d1dec6f8
parentab673c1bcaf20ac70352eeb6bf5b828462676693
io_uring: deduplicate array_size in io_allocate_scq_urings

A minor cleanup precomputing the sq size first instead of branching
array_size() in io_allocate_scq_urings().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c