aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify/fanotify_user.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-16 11:08:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 04:57:23 -0400
commit3058dca6945f12f1777eb40d43f4c97351a9c175 (patch)
tree5fa97d24aa0966fb1209c6ddcfd2eeb88bbf2638 /fs/notify/fanotify/fanotify_user.c
parenta44f52096c0b35214953124754dc034a889dc3b0 (diff)
fanotify: quit wanking with FASYNC in ->release()
... especially since there's no way to get that sucker on the list fsnotify_fasync() works with - the only thing adding to it is fsnotify_fasync() itself and it's never called for fanotify files while they are opened. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/notify/fanotify/fanotify_user.c')
-rw-r--r--fs/notify/fanotify/fanotify_user.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
index 6c80083a984f..1ea52f7c031f 100644
--- a/fs/notify/fanotify/fanotify_user.c
+++ b/fs/notify/fanotify/fanotify_user.c
@@ -399,9 +399,6 @@ static int fanotify_release(struct inode *ignored, struct file *file)
399 wake_up(&group->fanotify_data.access_waitq); 399 wake_up(&group->fanotify_data.access_waitq);
400#endif 400#endif
401 401
402 if (file->f_flags & FASYNC)
403 fsnotify_fasync(-1, file, 0);
404
405 /* matches the fanotify_init->fsnotify_alloc_group */ 402 /* matches the fanotify_init->fsnotify_alloc_group */
406 fsnotify_destroy_group(group); 403 fsnotify_destroy_group(group);
407 404