]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS/pnfs: Fix a live lock between recalled layouts and layoutget
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 17 Dec 2024 00:28:06 +0000 (19:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 12:53:00 +0000 (13:53 +0100)
commit61f3036bc24679c8f915caaa59574a807f60a42e
treebadbfbe5b20d6026ac370b37cbe845da918dde2d
parent534d59ab38010aada88390db65985e65d0de7d9e
NFS/pnfs: Fix a live lock between recalled layouts and layoutget

commit 62e2a47ceab8f3f7d2e3f0e03fdd1c5e0059fd8b upstream.

When the server is recalling a layout, we should ignore the count of
outstanding layoutget calls, since the server is expected to return
either NFS4ERR_RECALLCONFLICT or NFS4ERR_RETURNCONFLICT for as long as
the recall is outstanding.
Currently, we may end up livelocking, causing the layout to eventually
be forcibly revoked.

Fixes: bf0291dd2267 ("pNFS: Ensure LAYOUTGET and LAYOUTRETURN are properly serialised")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c