diff options
| author | Yitang Yang <yi1tang.yang@gmail.com> | 2026-07-22 20:45:51 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-07-22 07:36:25 -0600 |
| commit | ab05caca123c6d0b41850b7c05b246e4dca4a770 (patch) | |
| tree | 44997c7828045eee0459ca08d5d7055e1a20455d /scripts/basic | |
| parent | 3afc64c61ce906a04f073ca350b46de10e8302f9 (diff) | |
io_uring/rw: fix missing ERESTARTSYS conversion in read paths
Both read and write may receive internal restart error codes from
the filesystem layer and should be converted to -EINTR. However,
when multishot read support was added, the error code normalization
was lost for both io_read() and io_read_mshot().
Extract the conversion into io_fixup_restart_res() and apply it
in all three locations: io_rw_done(), io_read(), and io_read_mshot().
Fixes: a08d195b586a ("io_uring/rw: split io_read() into a helper")
Cc: stable@vger.kernel.org
Signed-off-by: Yitang Yang <yi1tang.yang@gmail.com>
Link: https://patch.msgid.link/20260722124551.130563-1-yi1tang.yang@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
