]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't re-setup vecs/iter in io_resumit_prep() is already there
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Sep 2020 15:28:14 +0000 (09:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Sep 2020 13:50:54 +0000 (07:50 -0600)
commit9a8d55671b1b1149b4e4d815a3b5dd7304d2caa7
tree2ab90bce49b10dd87a6e3b509ea6b48c5381b005
parent6d06f494ec6a5b7fc86bb41a09dd918a456abb71
io_uring: don't re-setup vecs/iter in io_resumit_prep() is already there

If we already have mapped the necessary data for retry, then don't set
it up again. It's a pointless operation, and we leak the iovec if it's
a large (non-stack) vec.

Fixes: be6d4627241c ("io_uring: re-issue block requests that failed because of resources")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c