summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-11-20 07:23:18 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-17 00:30:49 +0300
commit066715d3fde4834cbbec88d12ca277c4185b9303 (patch)
tree7ef0620aa5beab2a6e4d11de2c10caf321f10e58 /fs/namespace.c
parentf4cc1c3810a0382ff76a4e119a21b90b84dbe195 (diff)
downloadlinux-066715d3fde4834cbbec88d12ca277c4185b9303.tar.xz
clone_private_mount() doesn't need to touch namespace_sem
not for CL_PRIVATE clone_mnt() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index a1a04dd1ebfc..ec726ae00579 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1795,9 +1795,7 @@ struct vfsmount *clone_private_mount(struct path *path)
if (IS_MNT_UNBINDABLE(old_mnt))
return ERR_PTR(-EINVAL);
- down_read(&namespace_sem);
new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
- up_read(&namespace_sem);
if (IS_ERR(new_mnt))
return ERR_CAST(new_mnt);