From: Steve Dickson <SteveD@redhat.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 1/2] NFSv4: Schedule recovery if nfs40_walk_client_list() is interrupted
Date: Wed, 19 Mar 2014 08:09:56 -0400 [thread overview]
Message-ID: <53298914.2090003@RedHat.com> (raw)
In-Reply-To: <1395173006-14871-1-git-send-email-trond.myklebust@primarydata.com>
On 03/18/2014 04:03 PM, Trond Myklebust wrote:
> If a timeout or a signal interrupts the NFSv4 trunking discovery
> SETCLIENTID_CONFIRM call, then we don't know whether or not the
> server has changed the callback identifier on us.
> Assume that it did, and schedule a 'path down' recovery...
>
> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Steve Dickson <steved@redhat.com>
steved.
> ---
> fs/nfs/nfs4client.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
> index 0e46d3d1b6cc..aa9ef4876046 100644
> --- a/fs/nfs/nfs4client.c
> +++ b/fs/nfs/nfs4client.c
> @@ -531,6 +531,13 @@ int nfs40_walk_client_list(struct nfs_client *new,
> *result = pos;
> dprintk("NFS: <-- %s using nfs_client = %p ({%d})\n",
> __func__, pos, atomic_read(&pos->cl_count));
> + goto out;
> + case -ERESTARTSYS:
> + case -ETIMEDOUT:
> + /* The callback path may have been inadvertently
> + * changed. Schedule recovery!
> + */
> + nfs4_schedule_path_down_recovery(pos);
> default:
> goto out;
> }
>
prev parent reply other threads:[~2014-03-19 12:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 20:03 [PATCH 1/2] NFSv4: Schedule recovery if nfs40_walk_client_list() is interrupted Trond Myklebust
2014-03-18 20:03 ` [PATCH 2/2] NFSv4: Ensure we respect soft mount timeouts during trunking discovery Trond Myklebust
2014-03-19 12:10 ` Steve Dickson
2014-03-19 12:09 ` Steve Dickson [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=53298914.2090003@RedHat.com \
--to=steved@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).