OSDN Git Service

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)
commit3d9932a8b240c9019f48358e8a6928c53c2c7f6b
tree2ae3f21e8edc57fce9dd769f814f161631c52d63
parentbff6035d0c40fa1dd195aa41f61814d622883420
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