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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 May 2025 20:31:35 +0000 (22:31 +0200)
commit6d6d7f91cc8c111d40416ac9240a3bb9396c5235
treeb4b5e50584b4c9b59dfe346b5ee2429d83186b09
parentfa7ab64f1e2fdc8f2603aab8e0dd20de89cb10d9
NFSv4/pnfs: Reset the layout state after a layoutreturn

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>
fs/nfs/pnfs.c