NFS/pnfs: Fix the error path in pnfs_layoutreturn_retry_later_locked()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 10 May 2025 15:05:36 +0000 (11:05 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 May 2025 20:31:35 +0000 (22:31 +0200)
commit28511504f3ac73ebf45cbbe0dafeca1026e9a8f3
tree3db18fcd8a0acba15ee811a8bcc4204b1e41f32a
parent6d6d7f91cc8c111d40416ac9240a3bb9396c5235
NFS/pnfs: Fix the error path in pnfs_layoutreturn_retry_later_locked()

If there isn't a valid layout, or the layout stateid has changed, the
cleanup after a layout return should clear out the old data.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c