]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7d3cc9443def0ae021d72c18716e24d056bc09f
tree74665efa13cddb57d2328fce7e49e84a59236e61
parent3b0c6ae572673f0f2b83d71f95acd975a8ed8b9a
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: 39ab9325ab4c ("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