From 2c9f8cffa956b72ee276694c4bfd6aa22eb444fc Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 16 Jan 2010 12:57:40 -0500 Subject: [PATCH] --- yaml --- r: 179408 b: refs/heads/master c: df1a1ad29739f032f8905310796e558589403d61 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/namespace.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4be9be0fd122..60a3abce3c0b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8ad08d8a0c3823e9b06ef84c362c9361be323d2d +refs/heads/master: df1a1ad29739f032f8905310796e558589403d61 diff --git a/trunk/fs/namespace.c b/trunk/fs/namespace.c index 461090a57b33..4de493ea67cf 100644 --- a/trunk/fs/namespace.c +++ b/trunk/fs/namespace.c @@ -1354,12 +1354,12 @@ static int attach_recursive_mnt(struct vfsmount *source_mnt, if (err) goto out_cleanup_ids; + spin_lock(&vfsmount_lock); + if (IS_MNT_SHARED(dest_mnt)) { for (p = source_mnt; p; p = next_mnt(p, source_mnt)) set_mnt_shared(p); } - - spin_lock(&vfsmount_lock); if (parent_path) { detach_mnt(source_mnt, parent_path); attach_mnt(source_mnt, path);