]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc66685aec5fc350c8e6a6b6778369e021663f696
tree7be5027c3229747e267e930ed3efc9a962e3e803
parent6153a9abe6496f434031ab140fc0428d11329227
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