Skip to content
Commit cd658695 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent 8fb0f47a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment