diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 461090a57b33..4de493ea67cf 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -1354,12 +1354,12 @@ static int attach_recursive_mnt(struct vfsmount *source_mnt, | |||
1354 | if (err) | 1354 | if (err) |
1355 | goto out_cleanup_ids; | 1355 | goto out_cleanup_ids; |
1356 | 1356 | ||
1357 | spin_lock(&vfsmount_lock); | ||
1358 | |||
1357 | if (IS_MNT_SHARED(dest_mnt)) { | 1359 | if (IS_MNT_SHARED(dest_mnt)) { |
1358 | for (p = source_mnt; p; p = next_mnt(p, source_mnt)) | 1360 | for (p = source_mnt; p; p = next_mnt(p, source_mnt)) |
1359 | set_mnt_shared(p); | 1361 | set_mnt_shared(p); |
1360 | } | 1362 | } |
1361 | |||
1362 | spin_lock(&vfsmount_lock); | ||
1363 | if (parent_path) { | 1363 | if (parent_path) { |
1364 | detach_mnt(source_mnt, parent_path); | 1364 | detach_mnt(source_mnt, parent_path); |
1365 | attach_mnt(source_mnt, path); | 1365 | attach_mnt(source_mnt, path); |