Commit 07204f2
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: 3e6a0d3 ("io_uring: fix -EAGAIN retry with IOPOLL")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 696ee88 commit 07204f2
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3284 | 3284 | | |
3285 | 3285 | | |
3286 | 3286 | | |
3287 | | - | |
3288 | | - | |
3289 | 3287 | | |
3290 | 3288 | | |
3291 | 3289 | | |
| |||
3418 | 3416 | | |
3419 | 3417 | | |
3420 | 3418 | | |
3421 | | - | |
3422 | | - | |
3423 | 3419 | | |
3424 | 3420 | | |
3425 | 3421 | | |
| |||
0 commit comments