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>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commit84dc29633015e9612d85d99d9521c9a8319bdc9e
treed2f3c7cc01c746777189718c212c6bd180edfda5
parentfb984d2db7360fd8aed3f6098d6431b574a04692
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