io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
authorJens Axboe <axboe@kernel.dk>
Sun, 20 Nov 2022 17:18:45 +0000 (10:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Nov 2022 13:08:31 +0000 (06:08 -0700)
commit4464853277d0ccdb9914608dd1332f0fa2f9846f
tree3c1df058d34a9852a6623d6db533eeb5c0525dde
parent03e02acda8e267a8183e1e0ed289ff1ef9cd7ed8
io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups

Pass in EPOLL_URING_WAKE when signaling eventfd or doing poll related
wakups, so that we can check for a circular event dependency between
eventfd and epoll. If this flag is set when our wakeup handlers are
called, then we know we have a dependency that needs to terminate
multishot requests.

eventfd and epoll are the only such possible dependencies.

Cc: stable@vger.kernel.org # 6.0
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/poll.c