From: Janet Morgan <janetmor@us.ibm.com>
To: trond.myklebust@fys.uio.no
Cc: maneesh@in.ibm.com, linux-kernel@vger.kernel.org,
nfs@lists.sourceforge.net, bruce.allan@us.ibm.com
Subject: Re: 2.5.62 Oops during nfs mount
Date: Wed, 26 Feb 2003 12:09:22 -0800 [thread overview]
Message-ID: <3E5D1EF2.1BC379DD@us.ibm.com> (raw)
In-Reply-To: 15962.20933.457919.169668@charged.uio.no
Trond Myklebust wrote:
> >>>>> " " == Maneesh Soni <maneesh@in.ibm.com> writes:
>
> > Following patch should fix this problem. I think Trond can say
> > whether it is correct or not. In my opinion rpc_rmdir should
> > test for negative dentry after lookup_hash() returns, like
> > rpc_unlink() does.
>
> No. You are 'fixing' a symptom of a more fundamental
> bug/misunderstanding: lookup_path("") returns no error, and is
> sometimes causing us to remove the top level directory.
> See the 2-line patch I posted yesterday. It should fix the Oops you
> are reporting.
Thanks Trond, your patch below indeed fixed the Oops I reported:
--- linux-2.5.61-up/net/sunrpc/clnt.c.orig 2003-02-15
21:05:02.000000000 +0100
+++ linux-2.5.61-up/net/sunrpc/clnt.c 2003-02-17 19:39:20.000000000
+0100
@@ -208,7 +208,8 @@
rpcauth_destroy(clnt->cl_auth);
clnt->cl_auth = NULL;
}
- rpc_rmdir(clnt->cl_pathname);
+ if (clnt->cl_pathname[0])
+ rpc_rmdir(clnt->cl_pathname);
if (clnt->cl_xprt) {
xprt_destroy(clnt->cl_xprt);
clnt->cl_xprt = NULL;
prev parent reply other threads:[~2003-02-26 20:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-22 2:50 2.5.62 Oops during nfs mount Janet Morgan
2003-02-24 12:36 ` Maneesh Soni
2003-02-24 17:09 ` Trond Myklebust
2003-02-26 20:09 ` Janet Morgan [this message]
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=3E5D1EF2.1BC379DD@us.ibm.com \
--to=janetmor@us.ibm.com \
--cc=bruce.allan@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maneesh@in.ibm.com \
--cc=nfs@lists.sourceforge.net \
--cc=trond.myklebust@fys.uio.no \
/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