NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 15 Nov 2023 18:55:29 +0000 (13:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:18 +0000 (15:35 -0800)
commit8d43b944cab0ceb19c3093ba60a14c474b32dd2f
treeb4a55038fd35d4efc4b4d7b7dfcecc8ddb08bd45
parent4ffac0013421295e055005e8ae47d8c5b8ada387
NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT

[ Upstream commit 037e56a22ff37f9a9c2330b66cff55d3d1ff9b90 ]

Once the client has processed the CB_LAYOUTRECALL, but has not yet
successfully returned the layout, the server is supposed to switch to
returning NFS4ERR_RETURNCONFLICT. This patch ensures that we handle
that return value correctly.

Fixes: 183d9e7b112a ("pnfs: rework LAYOUTGET retry handling")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c