summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-11-20 05:23:18 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-16 22:30:49 +0100
commit066715d3fde4834cbbec88d12ca277c4185b9303 (patch)
tree7ef0620aa5beab2a6e4d11de2c10caf321f10e58 /fs/namespace.c
parentremove a bogus claim about namespace_sem being held by callers of mnt_alloc_id() (diff)
downloadlinux-066715d3fde4834cbbec88d12ca277c4185b9303.tar.xz
linux-066715d3fde4834cbbec88d12ca277c4185b9303.zip
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);