summaryrefslogtreecommitdiffstats
path: root/fs/notify/notification.c
diff options
context:
space:
mode:
authorEric Paris2011-10-14 23:43:39 +0200
committerEric Paris2012-12-11 19:44:36 +0100
commit0a6b6bd5919a65030b557ec8fe81f6fb3e93744a (patch)
tree940e38b5cc9d7fdb5804748842b555af554ed32f /fs/notify/notification.c
parentfsnotify: change locking order (diff)
downloadkernel-qcow2-linux-0a6b6bd5919a65030b557ec8fe81f6fb3e93744a.tar.gz
kernel-qcow2-linux-0a6b6bd5919a65030b557ec8fe81f6fb3e93744a.tar.xz
kernel-qcow2-linux-0a6b6bd5919a65030b557ec8fe81f6fb3e93744a.zip
fsnotify: make fasync generic for both inotify and fanotify
inotify is supposed to support async signal notification when information is available on the inotify fd. This patch moves that support to generic fsnotify functions so it can be used by all notification mechanisms. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/notification.c')
-rw-r--r--fs/notify/notification.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/notify/notification.c b/fs/notify/notification.c
index c887b1378f7e..b3963d8c9988 100644
--- a/fs/notify/notification.c
+++ b/fs/notify/notification.c
@@ -225,6 +225,7 @@ alloc_holder:
mutex_unlock(&group->notification_mutex);
wake_up(&group->notification_waitq);
+ kill_fasync(&group->fsn_fa, SIGIO, POLL_IN);
return return_event;
}