From: Jeff Layton <jlayton@redhat.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: Larry Keegan <lk@pfw.demon.co.uk>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: nfs client: Now you see it, now you don't (aka spurious ESTALE errors)
Date: Thu, 25 Jul 2013 10:33:59 -0400 [thread overview]
Message-ID: <20130725103359.7a0c44f8@corrin.poochiereds.net> (raw)
In-Reply-To: <1374762269.3868.6.camel@leira.trondhjem.org>
On Thu, 25 Jul 2013 14:24:30 +0000
"Myklebust, Trond" <Trond.Myklebust@netapp.com> wrote:
> On Thu, 2013-07-25 at 10:11 -0400, Jeff Layton wrote:
>
> > What might be helpful is to do some network captures when the problem
> > occurs. What we want to know is whether the ESTALE errors are coming
> > from the server, or if the client is generating them. That'll narrow
> > down where we need to look for problems.
>
> Hmm... Shouldn't ESTALE always be repackaged as ENOENT by the VFS, now
> that your patchset has gone upstream, Jeff?
>
I don't think so...
On something path-based then that might make sense (or maybe we should
declare a new ERACE error like Al once suggested and return that). If
you're doing a write() on a fd that you previously opened but the inode
has disappeared on the server, then -ESTALE clearly seems valid.
There are other problematic cases too...
Suppose I do stat(".", ...); ? Does an -ENOENT error make sense at that point?
Also, since we only retry once on an ESTALE error, returning that is a
pretty clear indicator that you raced with some other metadata
operations. ENOENT is not as informative...
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2013-07-25 14:33 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 13:45 nfs client: Now you see it, now you don't Larry Keegan
2013-07-25 14:11 ` nfs client: Now you see it, now you don't (aka spurious ESTALE errors) Jeff Layton
2013-07-25 14:24 ` Myklebust, Trond
2013-07-25 14:33 ` Jeff Layton [this message]
2013-07-25 14:41 ` Myklebust, Trond
2013-07-25 17:05 ` Larry Keegan
2013-07-25 18:18 ` Jeff Layton
2013-07-26 12:41 ` Larry Keegan
2013-07-26 13:12 ` Jeff Layton
2013-07-26 15:02 ` J. Bruce Fields
2013-07-26 22:25 ` Larry Keegan
2013-07-31 14:03 ` J. Bruce Fields
2013-07-31 19:50 ` Larry Keegan
2013-07-31 20:35 ` J. Bruce Fields
2013-07-26 16:10 ` Larry Keegan
2013-07-26 14:59 ` J. Bruce Fields
2013-07-26 23:21 ` Larry Keegan
2013-08-06 11:02 ` Larry Keegan
2013-08-06 11:14 ` Jeff Layton
2013-08-06 13:34 ` J. Bruce Fields
2013-08-06 15:38 ` Larry Keegan
2013-08-19 21:16 ` Bruce Guenter
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=20130725103359.7a0c44f8@corrin.poochiereds.net \
--to=jlayton@redhat.com \
--cc=Trond.Myklebust@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=lk@pfw.demon.co.uk \
/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).