OSDN Git Service

io_uring: fix truncated async read/readv and write/writev retry
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Mar 2020 18:27:04 +0000 (12:27 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Mar 2020 18:29:15 +0000 (12:29 -0600)
commit3f9d64415fdaa73017fcb168930006648617b488
tree7be5027c3229747e267e930ed3efc9a962e3e803
parentbbbdeb4720a0759ec90e3bcb20ad28d19e531346
io_uring: fix truncated async read/readv and write/writev retry

Ensure we keep the truncated value, if we did truncate it. If not, we
might read/write more than the registered buffer size.

Also for retry, ensure that we return the truncated mapped value for
the vectorized versions of the read/write commands.

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