]> Pileus Git - ~andy/linux/blobdiff - fs/notify/fanotify/fanotify_user.c
fsnotify: make fasync generic for both inotify and fanotify
[~andy/linux] / fs / notify / fanotify / fanotify_user.c
index 1218d10424d039f35d7efd4a8f5d8dea815b8b98..f0e7a57bc8990419e75b48988e523e1ed6efbea4 100644 (file)
@@ -414,6 +414,10 @@ static int fanotify_release(struct inode *ignored, struct file *file)
 
        wake_up(&group->fanotify_data.access_waitq);
 #endif
+
+       if (file->f_flags & FASYNC)
+               fsnotify_fasync(-1, file, 0);
+
        /* matches the fanotify_init->fsnotify_alloc_group */
        fsnotify_destroy_group(group);