Skip to content
Commit 9dab14b8 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: don't use poll handler if file can't be nonblocking read/written



There's no point in using the poll handler if we can't do a nonblocking
IO attempt of the operation, since we'll need to go async anyway. In
fact this is actively harmful, as reading from eg pipes won't return 0
to indicate EOF.

Cc: stable@vger.kernel.org # v5.7+
Reported-by: default avatarBenedikt Ames <wisp3rwind@posteo.eu>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6b7898eb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment