OSDN Git Service

NFSv4: Fix hangs when recovering open state after a server reboot
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 21 Mar 2023 04:17:36 +0000 (00:17 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 22 Mar 2023 20:22:35 +0000 (16:22 -0400)
commit6165a16a5ad9b237bb3131cff4d3c601ccb8f9a3
tree26fe11f2205afc03d44950adc6b0ec7071891d9c
parent21fd9e8700de86d1169f6336e97d7a74916ed04a
NFSv4: Fix hangs when recovering open state after a server reboot

When we're using a cached open stateid or a delegation in order to avoid
sending a CLAIM_PREVIOUS open RPC call to the server, we don't have a
new open stateid to present to update_open_stateid().
Instead rely on nfs4_try_open_cached(), just as if we were doing a
normal open.

Fixes: d2bfda2e7aa0 ("NFSv4: don't reprocess cached open CLAIM_PREVIOUS")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c