Skip to content
Commit 0a3737db authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rw: return IOU_ISSUE_SKIP_COMPLETE for multishot retry



If read multishot is being invoked from the poll retry handler, then we
should return IOU_ISSUE_SKIP_COMPLETE rather than -EAGAIN. If not, then
a CQE will be posted with -EAGAIN rather than triggering the retry when
the file is flagged as readable again.

Cc: stable@vger.kernel.org
Reported-by: default avatarSargun Dhillon <sargun@meta.com>
Fixes: fc68fcda

 ("io_uring/rw: add support for IORING_OP_READ_MULTISHOT")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6f0974ec
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