From: Miklos Szeredi <miklos-sUDqSbJrdHQHWmgEVkV9KA@public.gmane.org>
To: Jeff Layton <jeff.layton-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org>
Cc: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>,
Trond Myklebust
<trond.myklebust-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org>,
Alexander Viro
<viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>,
NFS <linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux-Fsdevel
<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] NFS: nfs4_lookup_revalidate need to report STALE inodes.
Date: Thu, 17 Jul 2014 14:52:00 +0200 [thread overview]
Message-ID: <CAJfpegs+EzqtDTZEWTHP0b7HNM+4sFPN4KwsdEhEh6gabmdjWA@mail.gmail.com> (raw)
In-Reply-To: <20140717072241.2c1549a3-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
On Thu, Jul 17, 2014 at 1:22 PM, Jeff Layton
<jeff.layton-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-07-17 12:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20140714151405.2fa06dd7@notabene.brown>
[not found] ` <20140714081455.69f55224@tlielax.poochiereds.net>
[not found] ` <20140714223513.47807c98@notabene.brown>
[not found] ` <20140714090028.6f04fd2c@tlielax.poochiereds.net>
[not found] ` <20140715085727.6fa12272@notabene.brown>
[not found] ` <20140714194738.5aafaf25@tlielax.poochiereds.net>
[not found] ` <20140717115024.1eb7433d@notabene.brown>
[not found] ` <20140717115024.1eb7433d-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2014-07-17 11:22 ` [PATCH] NFS: nfs4_lookup_revalidate need to report STALE inodes Jeff Layton
[not found] ` <20140717072241.2c1549a3-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-07-17 12:52 ` Miklos Szeredi [this message]
2014-07-17 14:41 ` Jeff Layton
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=CAJfpegs+EzqtDTZEWTHP0b7HNM+4sFPN4KwsdEhEh6gabmdjWA@mail.gmail.com \
--to=miklos-sudqsbjrdhqhwmgevkv9ka@public.gmane.org \
--cc=jeff.layton-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=neilb-l3A5Bk7waGM@public.gmane.org \
--cc=trond.myklebust-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org \
--cc=viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.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).