io_uring: refactor out send/recv async setup
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:16 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:17 +0000 (15:27 -0600)
commitceeeba9558b5296bd709c3e6639c3f44ba0d5840
tree2d9907c2d89dba851d867c80920dd4b9d53df2dc
parent91e7b35a841702c6c6590852ce873fbb57c48ace
io_uring: refactor out send/recv async setup

IORING_OP_[SEND,RECV] don't need async setup neither will get into
io_req_prep_async(). Remove them from io_req_prep_async() and remove
needs_async_data checks from the related setup functions.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c