Commit 066715d3 authored by Al Viro's avatar Al Viro

clone_private_mount() doesn't need to touch namespace_sem

not for CL_PRIVATE clone_mnt()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f4cc1c38
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment