diff options
| author | Michael Wigham <michael@wigham.net> | 2026-06-13 23:52:16 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-06-16 06:20:01 -0600 |
| commit | c554246ff4c68abf71b61a89c6e39d3cf94f523e (patch) | |
| tree | 357f2fef0fcce65048e1571200a9212a0882ebf4 /include/linux/timerqueue.h | |
| parent | 2564ca2e31bd8ee8348362941af2ee4671e487ca (diff) | |
io_uring/rw: preserve partial result for iopoll
A partial read will store the completed byte count in io->bytes_done.
The regular completion path applies io_fixup_rw_res() so that, when the
following operation reaches EOF, the number of bytes already read is
returned.
The iopoll completion path does not apply this fixup to the return value
and can return zero instead.
Use the fixup result when updating the CQE, and the raw result for the
reissue check.
Cc: stable@vger.kernel.org
Fixes: 4d9cb92ca41d ("io_uring/rw: fix short rw error handling")
Signed-off-by: Michael Wigham <michael@wigham.net>
Link: https://patch.msgid.link/20260613225240.34032-1-michael@wigham.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
