]> git.ipfire.org Git - thirdparty/mdadm.git/blob - kernel-patch-2.6.27
Assemble(): don't dup_super() before we need it.
[thirdparty/mdadm.git] / kernel-patch-2.6.27
1 touch_mnt_namespace when the mount flags change
2
3 From: Dan Williams <dan.j.williams@intel.com>
4
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
7 longer end in EROFS.
8
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>
12 ---
13
14 fs/namespace.c | 7 ++++++-
15 1 files changed, 6 insertions(+), 1 deletions(-)
16
17
18 diff --git a/fs/namespace.c b/fs/namespace.c
19 index 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