]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use iov_iter state save/restore helpers
authorJens Axboe <axboe@kernel.dk>
Fri, 10 Sep 2021 17:19:14 +0000 (11:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Sep 2021 15:22:32 +0000 (09:22 -0600)
commit52e48c0ec3c4954bd88f8515a60ca9c4bfd2b407
tree42bf48b536fadee33965cbaa76aeea2a8cb953e7
parent0ff837199781a847cdc6d85648b2699b4da3f4d6
io_uring: use iov_iter state save/restore helpers

Get rid of the need to do re-expand and revert on an iterator when we
encounter a short IO, or failure that warrants a retry. Use the new
state save/restore helpers instead.

We keep the iov_iter_state persistent across retries, if we need to
restart the read or write operation. If there's a pending retry, the
operation will always exit with the state correctly saved.

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