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>
Mon, 22 Mar 2021 13:42:47 +0000 (07:42 -0600)
commit455566a865c5176ea95415d534742ecaa7419319
treef0e8c276e0dd758a614a283aafd5450176250088
parent25bb73f91c4bbc26e10dca608aa3e745953736f5
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