summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-17 04:22:16 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-25 05:34:55 +0200
commitaa7a574d0c54cc5a0aceb7357b5097342c0844ee (patch)
treeac1392238193e8cc51050681a18b72102fa1d950 /fs/namespace.c
parentfs_is_visible only needs namespace_sem held shared (diff)
downloadlinux-aa7a574d0c54cc5a0aceb7357b5097342c0844ee.tar.xz
linux-aa7a574d0c54cc5a0aceb7357b5097342c0844ee.zip
dup_mnt_ns(): get rid of pointless grabbing of vfsmount_lock
mnt_list is protected by namespace_sem, not vfsmount_lock 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 0e54ad6ccd8a..17ff1470b405 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2444,9 +2444,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
return ERR_CAST(new);
}
new_ns->root = new;
- br_write_lock(&vfsmount_lock);
list_add_tail(&new_ns->list, &new->mnt_list);
- br_write_unlock(&vfsmount_lock);
/*
* Second pass: switch the tsk->fs->* elements and mark new vfsmounts