fsnotify: add a way to stop queueing events on group shutdown
authorJan Kara <jack@suse.cz>
Mon, 19 Sep 2016 21:44:27 +0000 (14:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 19 Sep 2016 22:36:17 +0000 (15:36 -0700)
commit12703dbfeb15402260e7554d32a34ac40c233990
treedaff806026a436ba9a359606c8eb580a9d9a7632
parentd5bf141893880f7283fe97e1812c58ff22c8f9a5
fsnotify: add a way to stop queueing events on group shutdown

Implement a function that can be called when a group is being shutdown
to stop queueing new events to the group.  Fanotify will use this.

Fixes: 5838d4442bd5 ("fanotify: fix double free of pending permission events")
Link: http://lkml.kernel.org/r/1473797711-14111-2-git-send-email-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/group.c
fs/notify/notification.c
include/linux/fsnotify_backend.h