fanotify: don't wank with FASYNC on ->release()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 Apr 2013 00:01:50 +0000 (20:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2013 19:41:43 +0000 (15:41 -0400)
... it's done already by __fput()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/notify/inotify/inotify_user.c

index e0f7c12..1db6d88 100644 (file)
@@ -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);