Skip to content

Commit 066715d

Browse files
author
Al Viro
committed
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>
1 parent f4cc1c3 commit 066715d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/namespace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,9 +1795,7 @@ struct vfsmount *clone_private_mount(struct path *path)
17951795
if (IS_MNT_UNBINDABLE(old_mnt))
17961796
return ERR_PTR(-EINVAL);
17971797

1798-
down_read(&namespace_sem);
17991798
new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
1800-
up_read(&namespace_sem);
18011799
if (IS_ERR(new_mnt))
18021800
return ERR_CAST(new_mnt);
18031801

0 commit comments

Comments
 (0)