]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd749316cdbf357d868d4d82de884034088fd7014
tree7ffcd2042e9e3bec8f314b0e3b997cca4613b591
parent4fc0330ac560cebdba18db423377480161fcd002
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