From: Maneesh Soni <maneesh@in.ibm.com>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [2.6.0-test1] vfsmount_lock-fix
Date: Mon, 14 Jul 2003 13:40:01 +0530 [thread overview]
Message-ID: <20030714081001.GD1214@in.ibm.com> (raw)
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/
reply other threads:[~2003-07-14 8:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030714081001.GD1214@in.ibm.com \
--to=maneesh@in.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).