io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups 5.10-stable-backport.3
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 14:04:49 +0000 (07:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 21:51:46 +0000 (14:51 -0700)
commit4029c28b8d6792778bdadc4e431be30302ff4a3b
treeb84d5408c335b8def0b3008aff70be1dd86a1e69
parent53270319f184c35499cf2ffeac8a75078b94934a
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>
io_uring/io_uring.c