]> 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)
commit883809e53096cffcffa1b7d22bd195e9332ad9df
tree0a2bff103baa8977305655f0a46eec7691bbb8b0
parent70c091e4c1fa4bedc04c6715592fd7e72c974a16
NFS: Fix interrupted slots by sending a solo SEQUENCE operation

We used to do this before 5d49345bf7a6, 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: 5d49345bf7a6 (NFSv4.1: Avoid false retries when RPC calls are interrupted)
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c