Jesse Keating 2f82dda
#607327 ?
Jesse Keating 2f82dda
Jesse Keating 2f82dda
Since the .31 or so notify rewrite inotify has not sent events about
Jesse Keating 2f82dda
inodes which are unmounted.  This patch restores those events.
Jesse Keating 2f82dda
Jesse Keating 2f82dda
Signed-off-by: Eric Paris <eparis@redhat.com>
Jesse Keating 2f82dda
---
Jesse Keating 2f82dda
Jesse Keating 2f82dda
 fs/notify/inotify/inotify_user.c |    7 +++++--
Jesse Keating 2f82dda
 1 files changed, 5 insertions(+), 2 deletions(-)
Jesse Keating 2f82dda
Jesse Keating 2f82dda
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c
Jesse Keating 2f82dda
index 44aeb0f..f381daf 100644
Jesse Keating 2f82dda
--- a/fs/notify/inotify/inotify_user.c
Jesse Keating 2f82dda
+++ b/fs/notify/inotify/inotify_user.c
Jesse Keating 2f82dda
@@ -90,8 +90,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg)
Jesse Keating 2f82dda
 {
Jesse Keating 2f82dda
 	__u32 mask;
Jesse Keating 2f82dda
 
Jesse Keating 2f82dda
-	/* everything should accept their own ignored and cares about children */
Jesse Keating 2f82dda
-	mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD);
Jesse Keating 2f82dda
+	/*
Jesse Keating 2f82dda
+	 * everything should accept their own ignored, cares about children,
Jesse Keating 2f82dda
+	 * and should receive events when the inode is unmounted
Jesse Keating 2f82dda
+	 */
Jesse Keating 2f82dda
+	mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT);
Jesse Keating 2f82dda
 
Jesse Keating 2f82dda
 	/* mask off the flags used to open the fd */
Jesse Keating 2f82dda
 	mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT));