From b66daf655303089437b0ce08e25d223dfb456bbc Mon Sep 17 00:00:00 2001 From: Maneesh Soni Date: Sun, 13 Jul 2003 18:49:09 -0700 Subject: [PATCH] vfsmount_lock-fix This fixes one place where I missed the replacing dcache_lock with vfsmount_lock in put_namespace(). Tested with CLONE_NEWNS flag also. --- include/linux/namespace.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/linux/namespace.h b/include/linux/namespace.h index e7b313a202b6..b5699538afac 100644 --- a/include/linux/namespace.h +++ b/include/linux/namespace.h @@ -2,7 +2,7 @@ #define _NAMESPACE_H_ #ifdef __KERNEL__ -#include +#include #include struct namespace { @@ -19,9 +19,9 @@ static inline void put_namespace(struct namespace *namespace) { if (atomic_dec_and_test(&namespace->count)) { down_write(&namespace->sem); - spin_lock(&dcache_lock); + spin_lock(&vfsmount_lock); umount_tree(namespace->root); - spin_unlock(&dcache_lock); + spin_unlock(&vfsmount_lock); up_write(&namespace->sem); kfree(namespace); } -- cgit v1.2.3