]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix interrupted slots by sending a solo SEQUENCE operation
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 8 Jul 2020 14:33:40 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 13 Jul 2020 14:50:41 +0000 (10:50 -0400)
commit247fa6c40d0aa6d11999303fed215cfda0f126f3
tree0a2bff103baa8977305655f0a46eec7691bbb8b0
parenta291fe0d72e2d8d4688186fd58cbb448604ba141
NFS: Fix interrupted slots by sending a solo SEQUENCE operation

We used to do this before 9f02f6180987, but this was changed to better
handle the NFS4ERR_SEQ_MISORDERED error code. This commit fixed the slot
re-use case when the server doesn't receive the interrupted operation,
but if the server does receive the operation then it could still end up
replying to the client with mis-matched operations from the reply cache.

We can fix this by sending a SEQUENCE to the server while recovering from
a SEQ_MISORDERED error when we detect that we are in an interrupted slot
situation.

Fixes: 9f02f6180987 (NFSv4.1: Avoid false retries when RPC calls are interrupted)
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c