]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Don't discard segments marked for return in _pnfs_return_layout()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 18 Apr 2021 19:00:45 +0000 (15:00 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 18 Apr 2021 19:10:53 +0000 (15:10 -0400)
commit48ac385e493ae34b151ab7ac2860d21e3bb3d76e
tree233f3b8c3c2465e0561b68d30a5977fec0649929
parentd7d3cc9443def0ae021d72c18716e24d056bc09f
NFSv4: Don't discard segments marked for return in _pnfs_return_layout()

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: ac53e103d49b ("pnfs: only tear down lsegs that precede seqid in LAYOUTRETURN args")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c