Re: [PATCH 1/2] nfs: Only update callback sequnce id when CB_SEQUENCE success

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux