io_uring: retain iov_iter state over io_read/io_write calls
authorJens Axboe <axboe@kernel.dk>
Tue, 18 Aug 2020 03:55:27 +0000 (20:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Aug 2020 23:05:27 +0000 (17:05 -0600)
commitb3d9fbdba838dc61448dc5121723bda552cae3c1
tree5776bdcc6a76b30dde0ccf978ae46200357b9db0
parent3f45898cffc4e386952f3e4821810500adccea1f
io_uring: retain iov_iter state over io_read/io_write calls

Instead of maintaining (and setting/remembering) iov_iter size and
segment counts, just put the iov_iter in the async part of the IO
structure.

This is mostly a preparation patch for doing appropriate internal retries
for short reads, but it also cleans up the state handling nicely and
simplifies it quite a bit.

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