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, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commit2e052d443df15d71277f6b8509badae4310ebd92
tree98c674c555728bc4f3cbb1c15fd762cc0eb5cb48
parent8c3f9cd1603d0e4af6c50ebc6d974ab7bdd03cf4
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