From: Al Viro Date: Mon, 15 Apr 2013 00:01:50 +0000 (-0400) Subject: fanotify: don't wank with FASYNC on ->release() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f269cad7f4bb19d4146fc1decc51f3da88257ffc;p=openwrt%2Fstaging%2Fblogic.git fanotify: don't wank with FASYNC on ->release() ... it's done already by __fput() Signed-off-by: Al Viro --- diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index e0f7c1241a6a..1db6d886cbf2 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -287,9 +287,6 @@ static int inotify_release(struct inode *ignored, struct file *file) pr_debug("%s: group=%p\n", __func__, group); - if (file->f_flags & FASYNC) - fsnotify_fasync(-1, file, 0); - /* free this group, matching get was inotify_init->fsnotify_obtain_group */ fsnotify_destroy_group(group);