Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Kinglong Mee <kinglongmee@gmail.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
	Christoph Hellwig <hch@infradead.org>,
	Trond Myklebust <trond.myklebust@primarydata.com>
Subject: Re: [PATCH 1/2] nfsd: Reset cb_status in nfsd4_cb_prepare() at retrying
Date: Wed, 3 Jun 2015 11:03:11 -0400	[thread overview]
Message-ID: <20150603150311.GA7574@fieldses.org> (raw)
In-Reply-To: <556D8C87.2000507@gmail.com>

On Tue, Jun 02, 2015 at 06:59:19PM +0800, Kinglong Mee wrote:
> nfsd enters a infinite loop and print message per 10 seconds,
> 
> May 31 18:33:52 test-server kernel: Error sending entire callback!
> May 31 18:34:01 test-server kernel: Error sending entire callback!
> 
> It is caused by a cb_layoutreturn got error -10008 (NFS4ERR_DELAY),
> and then, the client crash, nfsd enter the infinite loop.
> 
> bc_sendto --> call_timeout --> nfsd4_cb_done --> nfsd4_cb_layout_done
>  with error -10008 --> rpc_delay(task, HZ/100) --> bc_sendto ...

How are you reproducing this?

--b.

> 
> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
> ---
>  fs/nfsd/nfs4callback.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
> index 5694cfb..8b1ac8d 100644
> --- a/fs/nfsd/nfs4callback.c
> +++ b/fs/nfsd/nfs4callback.c
> @@ -875,6 +875,7 @@ static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata)
>  	u32 minorversion = clp->cl_minorversion;
>  
>  	cb->cb_minorversion = minorversion;
> +	cb->cb_status = 0;
>  	if (minorversion) {
>  		if (!nfsd41_cb_get_slot(clp, task))
>  			return;
> -- 
> 2.4.2

  reply	other threads:[~2015-06-03 15:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 10:59 [PATCH 1/2] nfsd: Reset cb_status in nfsd4_cb_prepare() at retrying Kinglong Mee
2015-06-03 15:03 ` J. Bruce Fields [this message]
2015-06-04  0:06   ` Kinglong Mee
2015-06-04 20:41     ` 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=20150603150311.GA7574@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=hch@infradead.org \
    --cc=kinglongmee@gmail.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