~xnox/ubuntu/natty/mdadm/natty-updates

« back to all changes in this revision

Viewing changes to kernel-patch-2.6.27

  • Committer: Dmitrijs Ledkovs
  • Author(s): Surbhi Palande
  • Date: 2010-09-30 17:46:19 UTC
  • mfrom: (1.1.25 sid)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20100930174619-cqsokylnluraiyr8
Tags: 3.1.4-1+8efb9d1ubuntu1
* Merge from debian unstable. (LP: #603582) 
* Remaining changes
  - Assemble.c, config.c: upgraded to the mdadm-3.1.4 version of these files
    from Debian.
  - debian/control: we need udev and util-linux in the right version. We
    also remove the build dependency from quilt and docbook-to-man as both
    are not used in Ubuntus mdadm.
  - debian/initramfs/hook: kept the Ubuntus version for handling the absence
    of active raid arrays in <initramfs>/etc/mdadm/mdadm.conf
  - debian/initramfs/script.local-top.DEBIAN, debian/mdadm-startall,
    debian/mdadm.raid.DEBIAN: removed. udev does its job now instead.
  - debian/mdadm-startall.sgml, debian/mdadm-startall.8: documentation of
    unused startall script
  - debian/mdadm.config, debian/mdadm.postinst - let udev do the handling
    instead. Resolved merge conflict by keeping Ubuntu's version.
  - debian/rules: kept debian's switch to using dh_lintian
  - debian/mdadm.links, debian/mdadm.manpages: dropped owing to the fact
    that these are not used in Ubuntu. Also dropped the build-dep on docbook
    to man)
  - debian/mdadm.postinst, debian/mdadm.config, initramfs/init-premount:
    boot-degraded enablement; maintain udev starting of RAID devices;
    init-premount hook script for the initramfs, to provide information at
    boot
  - debian/mkconf.in is the older mkconf. Kept the Ubuntus version.
  - debian/rules: Kept Ubuntus version for installing apport hooks, not
    installing un-used startall script and for adding a udev rule
    corresponding to mdadm.
  - debian/install-rc, check.d/_numbers, check.d/root_on_raid: Ubuntu partman
    installer changes
  - debian/presubj: Dropped this unused bug reporting file. Instead use
    source_mdadm.py act as an apport hook for bug handling.
  - rename debian/mdadm.vol_id.udev to debian/mdadm.mdadm-blkid.udev so that
    the rules file ends up with a more reasonable name

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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