]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cleanup io_alloc_async_ctx()
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Fri, 27 Mar 2020 07:36:52 +0000 (15:36 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Mar 2020 14:54:06 +0000 (08:54 -0600)
commit88a981cf6782e3675b79cdb9629a2628c45aeb04
tree2ae3f21e8edc57fce9dd769f814f161631c52d63
parent5be0f0e4d6d8e8d4f6370b88ef2d9a0d32ffce8c
io_uring: cleanup io_alloc_async_ctx()

Cleanup io_alloc_async_ctx() a bit, add a new __io_alloc_async_ctx(),
so io_setup_async_rw() won't need to check whether async_ctx is true
or false again.

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c