linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6.0-test1] vfsmount_lock-fix
@ 2003-07-14  8:10 Maneesh Soni
  0 siblings, 0 replies; only message in thread
From: Maneesh Soni @ 2003-07-14  8:10 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: LKML

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-14  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14  8:10 [2.6.0-test1] vfsmount_lock-fix Maneesh Soni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).