|
@@ -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);
|