]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 09:16:45 +0000 (11:16 +0200)
commita6ebc9c9e6ee8bf59852c29b4bc9ec86cca59d21
treeb102a2aee8f32a34d0dac50498664d424d87ec8d
parentdbb14b51c80ec80e7a4c4bf154e85df443eea86a
NFSv4: Fix hangs when recovering open state after a server reboot

commit 6165a16a5ad9b237bb3131cff4d3c601ccb8f9a3 upstream.

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