From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Adamson, Dros" <Weston.Adamson@netapp.com>
Cc: linux-nfs list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] nfsd: return 0 on reads of fault injection files
Date: Wed, 16 May 2012 17:58:47 -0400 [thread overview]
Message-ID: <20120516215847.GF20487@fieldses.org> (raw)
In-Reply-To: <E560542A-DCC3-4093-8B69-438783DD9451@netapp.com>
On Wed, May 16, 2012 at 09:50:32PM +0000, Adamson, Dros wrote:
> No, I haven't messed with it that much - I had other tasks take a
> higher priority, but I'm back on it as of this afternoon.
>
> I'll try nfsd-next to get CB_PATH_DOWN without fault_injection and
> report back to you. Also, I think we need to modify nfsd
> (nfsd4_new_conn()) to set cl_cb_state to NFSD4_CB_UNKNOWN on a
> successful BIND_CONN_TO_SESSION (IFF it's CB_DOWN with the right
> direction), otherwise the CB_PATH_DOWN flag will be set on every
> sequence OP
That's intentional:
http://www.ietf.org/mail-archive/web/nfsv4/current/msg10840.html
> and the client will keep sending BIND_CONN_TO_SESSION.
> The idea is that once we call nfsd4_new_conn, we won't know if the
> back channel is really up until a callback is attempted.
If the client hasn't given us a connection to use as the backchannel,
then we *know* the backchannel is down, we don't need to try sending a
callback (how could we?).
> Setting it to CB_UNKNOWN stops the loop of (sequence, bind_conn,
> sequence, bind_conn, …), but doesn't actually mark it as "UP" until a
> callback is successful.
If the client is attempting to clear the CB_PATH_DOWN flag by sending us
a BIND_CONN_TO_SESSION that doesn't actually give us a backchannel, then
it's confused.
If the client really doesn't care whether the backchannel is down or not
then it can ignore the flag--it's a flag, not an error.
--b.
next prev parent reply other threads:[~2012-05-16 21:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 19:31 [PATCH] nfsd: return 0 on reads of fault injection files Weston Andros Adamson
2012-05-16 21:16 ` J. Bruce Fields
2012-05-16 21:50 ` Adamson, Dros
2012-05-16 21:58 ` J. Bruce Fields [this message]
2012-05-16 22:10 ` Adamson, Dros
2012-05-17 11:33 ` J. Bruce Fields
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=20120516215847.GF20487@fieldses.org \
--to=bfields@fieldses.org \
--cc=Weston.Adamson@netapp.com \
--cc=linux-nfs@vger.kernel.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).