NFS: Don't discard pNFS layout segments that are marked for return
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 15 Apr 2021 19:41:57 +0000 (15:41 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 Apr 2021 12:50:29 +0000 (08:50 -0400)
commit39fd01863616964f009599e50ca5c6ea9ebf88d6
tree74665efa13cddb57d2328fce7e49e84a59236e61
parent8926cc8302819be9e67f70409ed001ecb2c924a9
NFS: Don't discard pNFS layout segments that are marked for return

If the pNFS layout segment is marked with the NFS_LSEG_LAYOUTRETURN
flag, then the assumption is that it has some reporting requirement
to perform through a layoutreturn (e.g. flexfiles layout stats or error
information).

Fixes: e0b7d420f72a ("pNFS: Don't discard layout segments that are marked for return")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c