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>
Mon, 22 Mar 2021 13:42:45 +0000 (07:42 -0600)
commit05287ed6e02d5746f91a9dc8e6767476f5e10077
tree21756e2f9e339f2bee1107e54ecebaa23baa0f86
parent92f7be35883ab51f54993a332ab3c0b714218c68
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