]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4/pnfs: Reset the layout state after a layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 10 May 2025 14:50:13 +0000 (10:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:08:22 +0000 (14:08 +0200)
commit65346f970490e792fe5ae8d931aece60824c4f7e
tree04a4ce1251d0301740876cca173008f79c59bd46
parent1eccb3a2dfe2ed585f7d2afba5431c89390551bd
NFSv4/pnfs: Reset the layout state after a layoutreturn

[ Upstream commit 6d6d7f91cc8c111d40416ac9240a3bb9396c5235 ]

If there are still layout segments in the layout plh_return_lsegs list
after a layout return, we should be resetting the state to ensure they
eventually get returned as well.

Fixes: 68f744797edd ("pNFS: Do not free layout segments that are marked for return")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pnfs.c