From: Andrew W Elble <aweits@rit.edu>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
Bruce James Fields <bfields@fieldses.org>,
Jeffrey Layton <jlayton@poochiereds.net>
Subject: Re: [PATCH] nfsd: fix nfsd4_delegreturn to return correct error codes
Date: Fri, 06 Nov 2015 08:08:20 -0500 [thread overview]
Message-ID: <m2mvurnum3.fsf@discipline.rit.edu> (raw)
In-Reply-To: <CAHQdGtShZ=6J9h1hW00zPZ+TWzAYmfSiET-1mEdv1-H=JGEgcA@mail.gmail.com> (Trond Myklebust's message of "Thu, 5 Nov 2015 17:31:37 -0500")
> Umm... If the client is sending delegreturn, then why not destroy the
> delegation?
ObDisclaimer: My "internal" version of this patch does just that.
If the DELEGRETURN is the first time that the client hears of the
revocation, I'm guessing that there isn't anything that can be done to
rewind time and do anything differently. But as Bruce points out, it
seems like there are other places where NFS4ERR_DELEG_REVOKED should be
being returned.
> What is the point of forcing the client to send
> FREE_STATEID, when it is telling you that it is no longer caching any
> locks or associated state and is no longer interested in keeping the
> delegation?
But - I keep re-reading RFC5661, and I can't figure out how this is
what was intended.
It seems like the "correct" thing to do is inform the client (via probably
too many different methods) that the/a delegation is revoked and let it
acknowledge via FREE_STATEID. The allowed error returns in 15.2 seem to
confirm this view.
Thanks,
Andy
--
Andrew W. Elble
aweits@discipline.rit.edu
Infrastructure Engineer, Communications Technical Lead
Rochester Institute of Technology
PGP: BFAD 8461 4CCF DC95 DA2C B0EB 965B 082E 863E C912
next prev parent reply other threads:[~2015-11-06 13:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 22:07 [PATCH] nfsd: fix nfsd4_delegreturn to return correct error codes Andrew Elble
2015-11-05 21:58 ` J. Bruce Fields
2015-11-05 22:31 ` Trond Myklebust
2015-11-06 13:08 ` Andrew W Elble [this message]
2015-11-06 13:48 ` Trond Myklebust
2015-11-06 14:03 ` Trond Myklebust
2015-11-06 14:19 ` Jeff Layton
2015-11-06 15:29 ` Bruce James Fields
2015-11-06 17:00 ` Jeff Layton
2015-11-06 12:28 ` 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=m2mvurnum3.fsf@discipline.rit.edu \
--to=aweits@rit.edu \
--cc=bfields@fieldses.org \
--cc=jlayton@poochiereds.net \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@primarydata.com \
/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