]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fanotify:drop notification if they exist in the outgoing queue
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 02:24:25 +0000 (21:24 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:54 +0000 (09:58 -0400)
commit767cd46c332d1360cdbe46ef18d80c3ade06fdc1
treee3868f28587ca44efd10b30aa4230ff54d09f567
parentff0b16a9850e8a240ad59e10b0a1291a8fcf7cbc
fanotify:drop notification if they exist in the outgoing queue

fanotify listeners get an open file descriptor to the object in question so
the ordering of operations is not as important as in other notification
systems.  inotify will drop events if the last event in the event FIFO is
the same as the current event.  This patch will drop fanotify events if
they are the same as another event anywhere in the event FIFO.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/fanotify/fanotify.c