diff options
| author | Jens Axboe <[email protected]> | 2024-10-19 15:16:51 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-10-19 15:25:45 +0000 |
| commit | ae6a888a4357131c01d85f4c91fb32552dd0bf70 (patch) | |
| tree | 1dc9e62968ce5a347f0e498be1df5458841677af /rust/helpers/signal.c | |
| parent | io_uring/sqpoll: ensure task state is TASK_RUNNING when running task_work (diff) | |
| download | kernel-ae6a888a4357131c01d85f4c91fb32552dd0bf70.tar.gz kernel-ae6a888a4357131c01d85f4c91fb32552dd0bf70.zip | |
io_uring/rw: fix wrong NOWAIT check in io_rw_init_file()
A previous commit improved how !FMODE_NOWAIT is dealt with, but
inadvertently negated a check whilst doing so. This caused -EAGAIN to be
returned from reading files with O_NONBLOCK set. Fix up the check for
REQ_F_SUPPORT_NOWAIT.
Reported-by: Julian Orth <[email protected]>
Link: https://github.com/axboe/liburing/issues/1270
Fixes: f7c913438533 ("io_uring/rw: allow pollable non-blocking attempts for !FMODE_NOWAIT")
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions
