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>
Wed, 22 Jun 2022 17:30:56 +0000 (11:30 -0600)
commiteac78b15c6404769d67aad6d0d68c0dc7435a55f
treebd81798c2442909376a4f70f12e3acfbefd9619f
parentbdce6500fbc77cdf6b4bddfa91df0201028f2b01
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