All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kinglong Mee <kinglongmee@gmail.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Trond Myklebust <trond.myklebust@primarydata.com>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
	Weston Andros Adamson <dros@primarydata.com>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	kinglongmee@gmail.com
Subject: Re: [PATCH 1/2] nfs: Only update callback sequnce id when CB_SEQUENCE success
Date: Thu, 11 Jun 2015 17:13:15 +0800	[thread overview]
Message-ID: <5579512B.60009@gmail.com> (raw)
In-Reply-To: <20150611082028.GA11330@infradead.org>

On 6/11/2015 4:20 PM, Christoph Hellwig wrote:
> Hi Kinglong,
> 
> when we last brought up this issue the recommendation was to follow
> the model in the clients nfs41_sequence_done() which handles even
> more corner cases.  Given that my previous fixes in that area were
> just a bandaid I probably shouldn't complain about piece mail handling,
> but if you have a little spare time available implementing the full
> set of checks might be worthwhile.

Thank you for your comments.

I have see your patches sits "nfsd: callback fixes". You said process as
nfs41_sequence_done() for handling error cases is server's logical.

Those two patches for NFS client are fix two bugs.

The first one is fix that between validate_seqid() nfs can return error
to nfs server. NFS server cannot make sure whether NFS client has update
the sequence ID.

Also, according to RFC, "If CB_SEQUENCE returns an error, then the state
of the slot (sequence ID, cached reply) MUST NOT change.",
so that this this patch is out.

The second for nfs is fix the initialize problem of cb_sequenceres
when meeting NFS4ERR_RETRY_UNCACHED_REP.

And, other two patches for nfsd, 
The first is fix a infinite loop caused by your last patch I meet.
The second is as you said following to nfs41_sequence_done() maybe better.

thanks
Kinglong Mee

  reply	other threads:[~2015-06-11  9:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 10:58 [PATCH 1/2] nfs: Only update callback sequnce id when CB_SEQUENCE success Kinglong Mee
2015-06-11  1:38 ` Kinglong Mee
2015-06-11  8:20   ` Christoph Hellwig
2015-06-11  9:13     ` Kinglong Mee [this message]
2015-06-12  1:35 ` [PATCH] NFS: Ensure that we update the sequence id under the slot table lock Trond Myklebust

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=5579512B.60009@gmail.com \
    --to=kinglongmee@gmail.com \
    --cc=bfields@fieldses.org \
    --cc=dros@primarydata.com \
    --cc=hch@infradead.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.