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>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commite868cec82fe4e6b443628d5a6506824096342777
treed062b5e82764dd242c71b3cacdc0fb4614d378ea
parent2386b6509702435c8567a5b76b41c276e0dd2ad6
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