]> git.baikalelectronics.ru Git - kernel.git/commit
eventfd: revised interface and cleanups
authorDavide Libenzi <davidel@xmailserver.org>
Tue, 30 Jun 2009 18:41:11 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 01:55:58 +0000 (18:55 -0700)
commitf1b7ddacd489a26eeb207b2b9ecbfc5a85fceedf
tree0cda85a58dafafa0a197cf1a789124203f1e7a88
parent26bb2550bc1226513f66d1cbcf23c5d1dc00f140
eventfd: revised interface and cleanups

Change the eventfd interface to de-couple the eventfd memory context, from
the file pointer instance.

Without such change, there is no clean way to racely free handle the
POLLHUP event sent when the last instance of the file* goes away.  Also,
now the internal eventfd APIs are using the eventfd context instead of the
file*.

This patch is required by KVM's IRQfd code, which is still under
development.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Gregory Haskins <ghaskins@novell.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Avi Kivity <avi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/lguest/lg.h
drivers/lguest/lguest_user.c
fs/aio.c
fs/eventfd.c
include/linux/aio.h
include/linux/eventfd.h