Files
linux-rockchip/include/linux
David Woodhouse 755e86f28a eventfd: Export eventfd_ctx_do_read()
[ Upstream commit 28f1326710 ]

Where events are consumed in the kernel, for example by KVM's
irqfd_wakeup() and VFIO's virqfd_wakeup(), they currently lack a
mechanism to drain the eventfd's counter.

Since the wait queue is already locked while the wakeup functions are
invoked, all they really need to do is call eventfd_ctx_do_read().

Add a check for the lock, and export it for them.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Message-Id: <20201027135523.646811-2-dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Stable-dep-of: 758b49204781 ("eventfd: prevent underflow for eventfd semaphores")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:06 +02:00
..
2023-08-26 15:26:49 +02:00
2022-08-21 15:16:16 +02:00
2022-10-26 13:25:35 +02:00
2022-10-26 13:25:42 +02:00
2022-04-13 21:00:56 +02:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2022-08-21 15:16:08 +02:00
2022-08-21 15:15:21 +02:00
2023-01-04 11:39:16 +01:00
2023-06-21 15:45:38 +02:00
2023-08-26 15:26:57 +02:00
2023-03-17 08:45:14 +01:00
2023-05-17 11:48:09 +02:00