]> 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:12:18 +0000 (14:12 +0200)
commite1b755c0d876febae59d1d25e7a700e96c32e560
tree6e37b2abf7bf11b9cbe29f0a305cf14121f4b2f7
parentc1dd9ccc0f0cd1937c8d47ccdcef08cfe277c486
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