summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-11-19 23:23:18 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-16 16:30:49 -0500
commit066715d3fde4834cbbec88d12ca277c4185b9303 (patch)
tree7ef0620aa5beab2a6e4d11de2c10caf321f10e58 /fs
parentf4cc1c3810a0382ff76a4e119a21b90b84dbe195 (diff)
downloadop-kernel-dev-066715d3fde4834cbbec88d12ca277c4185b9303.zip
op-kernel-dev-066715d3fde4834cbbec88d12ca277c4185b9303.tar.gz
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')
-rw-r--r--fs/namespace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index a1a04dd..ec726ae 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);
OpenPOWER on IntegriCloud