Revert "NFSv4: Retry LOCK on OLD_STATEID during delegation return"
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 27 Jun 2023 18:31:49 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:36 +0000 (22:00 +0200)
commitdd8c8369305deee68f2fe1a27173b23dc3a2729a
tree1937ed77cc229fa4c6d9547822509ffa0ab97ef8
parentef54db5b5df70f40b7bee8498cb308b1f419e5bb
Revert "NFSv4: Retry LOCK on OLD_STATEID during delegation return"

[ Upstream commit 5b4a82a0724af1dfd1320826e0266117b6a57fbd ]

Olga Kornievskaia reports that this patch breaks NFSv4.0 state recovery.
It also introduces additional complexity in the error paths for cases not
related to the original problem.  Let's revert it for now, and address the
original problem in another manner.

This reverts commit f5ea16137a3fa2858620dc9084466491c128535f.

Fixes: f5ea16137a3f ("NFSv4: Retry LOCK on OLD_STATEID during delegation return")
Reported-by: Kornievskaia, Olga <Olga.Kornievskaia@netapp.com>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c