]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't return layout segments that are in use
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Aug 2020 13:03:56 +0000 (09:03 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 12 Aug 2020 13:46:06 +0000 (09:46 -0400)
commit7489139c15da27197d8afd24c214361d3600fba6
tree30c6b8c6050de9fb4fd8f063941943f4a0a83649
parent513aa0d79791193b053a7c4c02663bbb63ef58ae
NFS: Don't return layout segments that are in use

If the NFS_LAYOUT_RETURN_REQUESTED flag is set, we want to return the
layout as soon as possible, meaning that the affected layout segments
should be marked as invalid, and should no longer be in use for I/O.

Fixes: 71773e393fe0 ("pNFS: Ignore non-recalled layouts in pnfs_layout_need_return()")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c