]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fsnotify: add group priorities
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 02:24:34 +0000 (21:24 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:59:01 +0000 (09:59 -0400)
commitcb2d429faf2cae62d3c51e28099a181d5fe8c244
tree401bc8d85e7228f868775269e6d97c3150f9a3a7
parent4d92604cc90aa18bbbe0f6e23b7a9fdb612836d3
fsnotify: add group priorities

This introduces an ordering to fsnotify groups.  With purely asynchronous
notification based "things" implementing fsnotify (inotify, dnotify) ordering
isn't particularly important.  But if people want to use fsnotify for the
basis of sycronous notification or blocking notification ordering becomes
important.

eg. A Hierarchical Storage Management listener would need to get its event
before an AV scanner could get its event (since the HSM would need to
bring the data in for the AV scanner to scan.)  Typically asynchronous notification
would want to run after the AV scanner made any relevant access decisions
so as to not send notification about an event that was denied.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/fanotify/fanotify_user.c
fs/notify/group.c
include/linux/fsnotify_backend.h