io_uring: clean up io_ring_ctx_alloc
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:22:06 +0000 (10:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:13 +0000 (18:39 -0600)
commit8b1dfd343ae6a64ca2b4741ab47a162fa59f43be
tree192cfef0d9222991eaf139edd27b383846224c20
parent4a07723fb4bb2568a31d43709904ab0d4c33d6c8
io_uring: clean up io_ring_ctx_alloc

Add a variable for the number of hash buckets in io_ring_ctx_alloc(),
makes it more readable.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/993926ed0d614ba9a76b2a85bebae2babcb13983.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c