Commit e77823c7 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups

stable inclusion
from stable-v5.10.162
commit 189556b05e1770263c43fa5b4c689e7cd3fa5b4e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7P7OH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=189556b05e1770263c43fa5b4c689e7cd3fa5b4e



--------------------------------

[ Upstream commit 44648532 ]

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: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c6fc74c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment