]> git.ipfire.org Git - thirdparty/mdadm.git/blame - kernel-patch-2.6.27
Add mbr pseudo metadata handler.
[thirdparty/mdadm.git] / kernel-patch-2.6.27
CommitLineData
695154b2
DW
1touch_mnt_namespace when the mount flags change
2
3From: Dan Williams <dan.j.williams@intel.com>
4
5Daemons that need to be launched while the rootfs is read-only can now
6poll /proc/mounts to be notified when their O_RDWR requests may no
7longer end in EROFS.
8
9Cc: Kay Sievers <kay.sievers@vrfy.org>
10Cc: Neil Brown <neilb@suse.de>
11Signed-off-by: Dan Williams <dan.j.williams@intel.com>
12---
13
14 fs/namespace.c | 7 ++++++-
15 1 files changed, 6 insertions(+), 1 deletions(-)
16
17
18diff --git a/fs/namespace.c b/fs/namespace.c
19index 6e283c9..1bd5ba2 100644
20--- a/fs/namespace.c
21+++ b/fs/namespace.c
22@@ -1553,8 +1553,13 @@ static noinline int do_remount(struct nameidata *nd, int flags, int mnt_flags,
23 if (!err)
24 nd->path.mnt->mnt_flags = mnt_flags;
25 up_write(&sb->s_umount);
26- if (!err)
27+ if (!err) {
28 security_sb_post_remount(nd->path.mnt, flags, data);
29+
30+ spin_lock(&vfsmount_lock);
31+ touch_mnt_namespace(nd->path.mnt->mnt_ns);
32+ spin_unlock(&vfsmount_lock);
33+ }
34 return err;
35 }
36