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, 4 Apr 2021 21:27:19 +0000 (15:27 -0600)
commit93b8039f95cf059f6d32d80349615264bb6dab78
tree13a5063e359c0ba2413d5d2cb70d32401f82ba3f
parenteaf75b4fd9f28c045d60d277232a6159cfcf495d
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