1 touch_mnt_namespace when the mount flags change
3 From: Dan Williams <dan.j.williams@intel.com>
5 Daemons that need to be launched while the rootfs is read-only can now
6 poll /proc/mounts to be notified when their O_RDWR requests may no
9 Cc: Kay Sievers <kay.sievers@vrfy.org>
10 Cc: Neil Brown <neilb@suse.de>
11 Signed-off-by: Dan Williams <dan.j.williams@intel.com>
14 fs/namespace.c | 7 ++++++-
15 1 files changed, 6 insertions(+), 1 deletions(-)
18 diff --git a/fs/namespace.c b/fs/namespace.c
19 index 6e283c9..1bd5ba2 100644
22 @@ -1553,8 +1553,13 @@ static noinline int do_remount(struct nameidata *nd, int flags, int mnt_flags,
24 nd->path.mnt->mnt_flags = mnt_flags;
25 up_write(&sb->s_umount);
28 security_sb_post_remount(nd->path.mnt, flags, data);
30 + spin_lock(&vfsmount_lock);
31 + touch_mnt_namespace(nd->path.mnt->mnt_ns);
32 + spin_unlock(&vfsmount_lock);