Jens Axboe ae6a888a43 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 <ju.orth@gmail.com>
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 <axboe@kernel.dk>
2024-10-19 09:25:45 -06:00
..
2024-09-16 13:29:00 +02:00
2024-06-19 07:57:21 -06:00
2022-07-24 18:39:11 -06:00
2024-09-24 11:11:38 -07:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2024-09-11 10:44:10 -06:00