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>
Thu, 21 Jul 2022 14:44:11 +0000 (08:44 -0600)
commit9b9a0c5ada24b10d1aa98b882408c0b62b193c44
tree9129ae151c5a60fe03f00e5f7767ed2415197955
parent3c510d815b09f881bb0cfab530b00071f2aac152
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