diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-04-01 14:18:48 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-01 18:31:21 +0300 |
commit | 07204f21577a1d882f0259590c3553fe6a476381 (patch) | |
tree | a581bb61e2722e70687801c9c9ec7c907ffaa24c /net/rose/rose_in.c | |
parent | 696ee88a7c50f96573f98aa76cc74286033140c1 (diff) | |
download | linux-07204f21577a1d882f0259590c3553fe6a476381.tar.xz |
io_uring: fix EIOCBQUEUED iter revert
iov_iter_revert() is done in completion handlers that happensf before
read/write returns -EIOCBQUEUED, no need to repeat reverting afterwards.
Moreover, even though it may appear being just a no-op, it's actually
races with 1) user forging a new iovec of a different size 2) reissue,
that is done via io-wq continues completely asynchronously.
Fixes: 3e6a0d3c7571c ("io_uring: fix -EAGAIN retry with IOPOLL")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/rose/rose_in.c')
0 files changed, 0 insertions, 0 deletions