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>
Fri, 17 Jun 2022 14:25:39 +0000 (08:25 -0600)
commit562d1498fd0db32b132c06fd2e8226ed9377da8c
tree6c79e21085c217d3c852d51039e3f37dee5d22a2
parentcbfe583f2d720e3452e605a5b60216851e02f2d3
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