Skip to content
Snippets Groups Projects
Commit bcb0fda3 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rw: ensure reissue path is correctly handled for IOPOLL


The IOPOLL path posts CQEs when the io_kiocb is marked as completed,
so it cannot rely on the usual retry that non-IOPOLL requests do for
read/write requests.

If -EAGAIN is received and the request should be retried, go through
the normal completion path and let the normal flush logic catch it and
reissue it, like what is done for !IOPOLL reads or writes.

Fixes: d803d123 ("io_uring/rw: handle -EAGAIN retry at IO completion time")
Reported-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/io-uring/2b43ccfa-644d-4a09-8f8f-39ad71810f41@oracle.com/


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6ebf0518
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment