]> 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:10:03 +0000 (14:10 +0200)
commit8f2eb3adb39498ec7171d24a42d4dcbfaed71cb6
tree2f74ae05d23d119ccbcaec9d0b4c7729a665bd90
parent8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4
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