]> git.baikalelectronics.ru Git - kernel.git/commit
eventfd - allow atomic read and waitqueue remove
authorDavide Libenzi <davidel@xmailserver.org>
Wed, 13 Jan 2010 17:34:36 +0000 (09:34 -0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Jan 2010 14:26:38 +0000 (12:26 -0200)
commit0d5586188b9f384dcf1311c51e5571b6ddc0659e
tree05bea15a25c9d9a4dcc0658a6a8bf845daca535a
parent44cbb1c51a83cf53ddd309ea66f894687b24f263
eventfd - allow atomic read and waitqueue remove

KVM needs a wait to atomically remove themselves from the eventfd ->poll()
wait queue head, in order to handle correctly their IRQfd deassign
operation.

This patch introduces such API, plus a way to read an eventfd from its
context.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
fs/eventfd.c
include/linux/eventfd.h