diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-11-19 23:23:18 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-12-16 16:30:49 -0500 |
commit | 066715d3fde4834cbbec88d12ca277c4185b9303 (patch) | |
tree | 7ef0620aa5beab2a6e4d11de2c10caf321f10e58 /fs | |
parent | f4cc1c3810a0382ff76a4e119a21b90b84dbe195 (diff) |
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.c | 2 |
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); |