Messages in this thread Patch in this message | | | Date | Mon, 14 Jul 2003 13:40:01 +0530 | From | Maneesh Soni <> | Subject | [2.6.0-test1] vfsmount_lock-fix |
| |
Hi,
Please apply this patch for replacing dcache_lock with vfsmount_lock in put_namespace(). This was one obvious thing for which I felt very bad to miss. Tested with CLONE_NEWNS flag also.
Thanks Maneesh
- fix put_namespace() in namespace.h (replace dcache_lock with vfsmount_lock)
include/linux/namespace.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff -puN include/linux/namespace.h~vfsmount_lock-fix include/linux/namespace.h --- linux-2.6.0-test1/include/linux/namespace.h~vfsmount_lock-fix 2003-07-14 12:24:33.000000000 +0530 +++ linux-2.6.0-test1-maneesh/include/linux/namespace.h 2003-07-14 12:24:33.000000000 +0530 @@ -2,7 +2,7 @@ #define _NAMESPACE_H_ #ifdef __KERNEL__ -#include <linux/dcache.h> +#include <linux/mount.h> #include <linux/sched.h> struct namespace { @@ -19,9 +19,9 @@ static inline void put_namespace(struct { 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); } _ -- Maneesh Soni IBM Linux Technology Center, IBM India Software Lab, Bangalore. Phone: +91-80-5044999 email: maneesh@in.ibm.com http://lse.sourceforge.net/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |