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>
Thu, 25 Mar 2021 16:24:19 +0000 (10:24 -0600)
commit46196182275edabc7e196bb59ee872e07857ccdc
tree5d87d0477d749b4623c242c4a7ff5fd7e61cc810
parenta6054c054e177eecd9248255a449a3a79e8433dd
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