]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cleanup io_import_iovec() of pre-mapped request
authorJens Axboe <axboe@kernel.dk>
Tue, 18 Aug 2020 20:58:33 +0000 (13:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Aug 2020 21:03:15 +0000 (14:03 -0700)
commit8a9e764a8148f595bb0a1fc5deedd8a2da39661e
tree924cc6737d2a615860b6d8fa426fd5b5eec5b513
parenta113c8b19549db493b898d19fed65b4ef57df26e
io_uring: cleanup io_import_iovec() of pre-mapped request

io_rw_prep_async() goes through a dance of clearing req->io, calling
the iovec import, then re-setting req->io. Provide an internal helper
that does the right thing without needing state tweaked to get there.

This enables further cleanups in io_read, io_write, and
io_resubmit_prep(), but that's left for another time.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c