io_uring: add support for level triggered poll
authorJens Axboe <axboe@kernel.dk>
Fri, 27 May 2022 16:55:07 +0000 (10:55 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:43:58 +0000 (08:43 -0600)
commitd0eac5e5d2956569fb32a7c72d94f538df4c8672
tree61a6e2ca5ec54c732b8d76f90b39338d4c156b7b
parent0cf185c2ccf2a9638ab77d0a3e91ca3357b5450d
io_uring: add support for level triggered poll

By default, the POLL_ADD command does edge triggered poll - if we get
a non-zero mask on the initial poll attempt, we complete the request
successfully.

Support level triggered by always waiting for a notification, regardless
of whether or not the initial mask matches the file state.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/poll.c