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>
Mon, 25 Jul 2022 00:39:12 +0000 (18:39 -0600)
commitb9ba8a4463cd78d0aee520c4bf2569820ac29929
tree7ffcd2042e9e3bec8f314b0e3b997cca4613b591
parentd9b57aa3cfc792ccac6858376c017dbea6cb2872
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