]> 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)
commitbfa13b341466a77990db2a979c775b73d8890150
tree2ae3f21e8edc57fce9dd769f814f161631c52d63
parent5be51ed8afdf67227b8791835d91aa19cab99640
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