OSDN Git Service

io_uring: retain iov_iter state over io_read/io_write calls
authorJens Axboe <axboe@kernel.dk>
Thu, 13 Aug 2020 15:47:43 +0000 (09:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Aug 2020 20:53:34 +0000 (13:53 -0700)
commitff6165b2d7f66fccb7095a60ccc7a80813858665
treedd68d9c1a8af90c83192d74c0d2d4bf4206e096f
parentebf0d100df0731901c16632f78d78d35f4123bc4
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