Commit 5e92936
committed
io_uring: terminate manual loop iterator loop correctly for non-vecs
The fix for not advancing the iterator if we're using fixed buffers is
broken in that it can hit a condition where we don't terminate the loop.
This results in io-wq looping forever, asking to read (or write) 0 bytes
for every subsequent loop.
Reported-by: Joel Jaeschke <joel.jaeschke@gmail.com>
Link: axboe/liburing#549
Fixes: 16c8d2d ("io_uring: ensure symmetry in handling iter types in loop_rw_iter()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent adf3a9e commit 5e92936
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3612 | 3612 | | |
3613 | 3613 | | |
3614 | 3614 | | |
| 3615 | + | |
3615 | 3616 | | |
3616 | 3617 | | |
3617 | 3618 | | |
3618 | | - | |
3619 | 3619 | | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
3620 | 3623 | | |
3621 | | - | |
3622 | 3624 | | |
3623 | 3625 | | |
3624 | 3626 | | |
| |||
0 commit comments