From: Al Viro <viro@zeniv.linux.org.uk>
Date: Mon, 15 Apr 2013 00:01:50 +0000 (-0400)
Subject: fanotify: don't wank with FASYNC on ->release()
X-Git-Tag: v3.10-rc1~129^2~71
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f269cad7f4bb19d4146fc1decc51f3da88257ffc;p=users%2Fjedix%2Flinux-maple.git

fanotify: don't wank with FASYNC on ->release()

... it's done already by __fput()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---

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);