Home
last modified time | relevance | path

Searched hist:"28 f1326710555bbe666f64452d08f2d7dd657cae" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/
H A Deventfd.hdiff 28f1326710555bbe666f64452d08f2d7dd657cae Tue Oct 27 08:55:21 CDT 2020 David Woodhouse <dwmw@amazon.co.uk> eventfd: Export eventfd_ctx_do_read()

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>
/openbmc/linux/fs/
H A Deventfd.cdiff 28f1326710555bbe666f64452d08f2d7dd657cae Tue Oct 27 08:55:21 CDT 2020 David Woodhouse <dwmw@amazon.co.uk> eventfd: Export eventfd_ctx_do_read()

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>