]> git.baikalelectronics.ru Git - kernel.git/commit
epoll keyed wakeups: teach epoll about hints coming with the wakeup key
authorDavide Libenzi <davidel@xmailserver.org>
Tue, 31 Mar 2009 22:24:22 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:20 +0000 (08:59 -0700)
commitb01f4612b9790eb443c59e6dad0db1b303bb39b7
treede372dc3955bb8ab2dec1b50f4292f367fa4e22f
parentdafee6c4b6e1b204cc7a77ad56fa1fdc92a3dd6d
epoll keyed wakeups: teach epoll about hints coming with the wakeup key

Use the events hint now sent by some devices, to avoid unnecessary wakeups
for events that are of no interest for the caller.  This code handles both
devices that are sending keyed events, and the ones that are not (and
event the ones that sometimes send events, and sometimes don't).

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Cc: William Lee Irwin III <wli@movementarian.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventpoll.c