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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:36 +0000 (10:07 +0200)
commit2f7e766bc1441f8bb7671bf0f1b894973eb81a0e
tree1ce6c333c3eebe867245dab50b2cab0a6c5a0b9f
parent20e44c3acfa49a02645456047e9dc32274a6e559
NFSv4.1: Fix the CREATE_SESSION slot number accounting

commit b519d408ea32040b1c7e10b155a3ee9a36660947 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c