Skip to content
Commit 18bceab1 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: allow POLL_ADD with double poll_wait() users



Some file descriptors use separate waitqueues for their f_ops->poll()
handler, most commonly one for read and one for write. The io_uring
poll implementation doesn't work with that, as the 2nd poll_wait()
call will cause the io_uring poll request to -EINVAL.

This affects (at least) tty devices and /dev/random as well. This is a
big problem for event loops where some file descriptors work, and others
don't.

With this fix, io_uring handles multiple waitqueues.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4a38aed2
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