Skip to content
Commit 5e929367 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJoel Jaeschke <joel.jaeschke@gmail.com>
Link: https://github.com/axboe/liburing/issues/549


Fixes: 16c8d2df ("io_uring: ensure symmetry in handling iter types in loop_rw_iter()")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent adf3a9e9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment