diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-09-10 11:19:14 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-09-15 09:22:32 -0600 |
commit | cd65869512ab5668a5d16f789bc4da1319c435c4 (patch) | |
tree | 42bf48b536fadee33965cbaa76aeea2a8cb953e7 /samples | |
parent | 8fb0f47a9d7acf620d0fd97831b69da9bc5e22ed (diff) | |
download | lwn-cd65869512ab5668a5d16f789bc4da1319c435c4.tar.gz lwn-cd65869512ab5668a5d16f789bc4da1319c435c4.zip |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions