Linux NFS development
 help / color / mirror / Atom feed
From: Jeff Layton <jeff.layton@primarydata.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Jeff Layton <jeff.layton@primarydata.com>,
	NeilBrown <neilb@suse.de>,
	Trond Myklebust <trond.myklebust@primarydata.com>,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	NFS <linux-nfs@vger.kernel.org>,
	Linux-Fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] NFS: nfs4_lookup_revalidate need to report STALE inodes.
Date: Thu, 17 Jul 2014 10:41:59 -0400	[thread overview]
Message-ID: <20140717104159.59ea2f6f@tlielax.poochiereds.net> (raw)
In-Reply-To: <CAJfpegs+EzqtDTZEWTHP0b7HNM+4sFPN4KwsdEhEh6gabmdjWA@mail.gmail.com>

On Thu, 17 Jul 2014 14:52:00 +0200
Miklos Szeredi <miklos@szeredi.hu> wrote:

> On Thu, Jul 17, 2014 at 1:22 PM, Jeff Layton
> <jeff.layton@primarydata.com> wrote:
> 
> > What's so special about an EOPENSTALE return from finish_open that we
> > need to handle retries in do_last? It seems like we could get rid of the
> > stale_open label and just let do_filp_open handle it like we would
> > an ESTALE return from any other spot in the function.
> >
> > Just for giggles, here's an RFC patch. It builds but I haven't tested
> > it. It might also be possible to do some cleanup around saved_parent
> > with this.
> >
> > Thoughts?
> 
> EOPENSTALE is an optimization for the redoing only the last component.
> It's the analogue of ->d_revalidate() failure, in which case lookup of
> that component only is retried path components before that are not.
> 
> I'm not sure if it's a valid optimization, but if not, then we should
> also consider doing LOOKUP_REVAL on the whole path on any
> d_revalidate() failure as well.
> 
> Thanks,
> Miklos


Ok, that makes sense and it's seems like good enough reason to keep it
as is for now. We can just drop my RFC patch...

Thanks,
-- 
Jeff Layton <jlayton@primarydata.com>

      reply	other threads:[~2014-07-17 14:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14  5:14 [PATCH] NFS: nfs4_lookup_revalidate need to report STALE inodes NeilBrown
2014-07-14 12:14 ` Jeff Layton
2014-07-14 12:35   ` NeilBrown
2014-07-14 13:00     ` Jeff Layton
2014-07-14 22:57       ` NeilBrown
2014-07-14 23:47         ` Jeff Layton
2014-07-17  1:50           ` NeilBrown
2014-07-17 11:22             ` Jeff Layton
2014-07-17 12:52               ` Miklos Szeredi
2014-07-17 14:41                 ` Jeff Layton [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=20140717104159.59ea2f6f@tlielax.poochiereds.net \
    --to=jeff.layton@primarydata.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=neilb@suse.de \
    --cc=trond.myklebust@primarydata.com \
    --cc=viro@zeniv.linux.org.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