Files
linux-rockchip/include/uapi/linux
Jens Axboe 717ed90a66 eventpoll: add EPOLL_URING_WAKE poll wakeup flag
[ Upstream commit caf1aeaffc3b09649a56769e559333ae2c4f1802 ]

We can have dependencies between epoll and io_uring. Consider an epoll
context, identified by the epfd file descriptor, and an io_uring file
descriptor identified by iofd. If we add iofd to the epfd context, and
arm a multishot poll request for epfd with iofd, then the multishot
poll request will repeatedly trigger and generate events until terminated
by CQ ring overflow. This isn't a desired behavior.

Add EPOLL_URING so that io_uring can pass it in as part of the poll wakeup
key, and io_uring can check for that to detect a potential recursive
invocation.

Cc: stable@vger.kernel.org # 6.0
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 4464853277d0 ("io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-04 11:28:47 +01:00
..
2022-09-15 09:08:09 +02:00
2022-08-11 10:31:19 -07:00
2022-06-07 10:20:42 -07:00
2022-08-23 14:54:54 -05:00
2022-09-24 07:00:00 +02:00
2022-08-10 13:49:50 +01:00
2022-06-03 20:09:27 +08:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:43:04 +02:00
2022-09-07 16:46:03 +02:00
2022-09-20 09:13:38 +02:00
2022-09-27 17:29:09 -07:00
2022-09-08 12:59:00 -06:00
2022-08-11 04:31:15 -04:00