]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9f526092a495134e93dbf9cb94c9c06a11556f5
tree9049e716fbaa9e06cf0cee5704cf2e3d5f5e68a2
parent93a074b0ca91e60c64e4b1439e87c18efdfd4b30
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