From b2f26287eda1372db2572e7ed31c8ba8150edc6b Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 16 Sep 2013 22:22:16 -0400 Subject: [PATCH] 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 --- fs/namespace.c | 2 -- 1 file changed, 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 -- 2.39.5