NFSv4.1: Fix the CREATE_SESSION slot number accounting
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 11 Sep 2016 18:50:01 +0000 (14:50 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 11 Sep 2016 18:56:44 +0000 (14:56 -0400)
commitb519d408ea32040b1c7e10b155a3ee9a36660947
tree9049e716fbaa9e06cf0cee5704cf2e3d5f5e68a2
parent05c974669ecec510a85d8534099bb75404e82c41
NFSv4.1: Fix the CREATE_SESSION slot number accounting

Ensure that we conform to the algorithm described in RFC5661, section
18.36.4 for when to bump the sequence id. In essence we do it for all
cases except when the RPC call timed out, or in case of the server returning
NFS4ERR_DELAY or NFS4ERR_STALE_CLIENTID.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4proc.c