io_uring: simplify io_resubmit_prep()
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:20 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commit179ae0d15e8b3a2d9affe680281009f1f10c4a9d
tree5c8dd8ad19ef52a59070d691383797f5a4952da8
parentb7e298d265f20eafc3615be271a3e5d90e4dc3dd
io_uring: simplify io_resubmit_prep()

If not for async_data NULL check, io_resubmit_prep() is already an rw
specific version of io_req_prep_async(), but slower because 1) it always
goes through io_import_iovec() even if following io_setup_async_rw() the
result 2) instead of initialising iovec/iter in-place it does it
on-stack and then copies with io_setup_async_rw().

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