io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 14:04:49 +0000 (07:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:22:43 +0000 (07:22 +0100)
commitccf06b5a981c734585b531569b078cd727251639
tree0f406c2635a34b7bdebb4c1450de61bcaf9e31a6
parent77baf39227c025c4e9936ea4b11eea9d36becdb6
io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups

[ Upstream commit 4464853277d0ccdb9914608dd1332f0fa2f9846f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c