io_uring/rw: return IOU_ISSUE_SKIP_COMPLETE for multishot retry
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Mar 2024 14:29:47 +0000 (08:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Mar 2024 14:29:47 +0000 (08:29 -0600)
commit0a3737db8479b77f95f4bfda8e71b03c697eb56a
treee28ce74454871c42d83b2a8335293951b2902659
parent6f0974eccbf78baead1735722c4f1ee3eb9422cd
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: Sargun Dhillon <sargun@meta.com>
Fixes: fc68fcda04910 ("io_uring/rw: add support for IORING_OP_READ_MULTISHOT")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c