]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't move layouts to plh_return_segs list while in use
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 4 Aug 2020 20:30:30 +0000 (16:30 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 12 Aug 2020 13:46:05 +0000 (09:46 -0400)
commit1151c8b10eb389f09a0e2aac9ed738afcfcf4148
tree71e0a1ff7e3f4799a5dd34bda2f1f7280b51cbe2
parenta0070f7b3330868a00d4e4450902e9c7abee6421
NFS: Don't move layouts to plh_return_segs list while in use

If the layout segment is still in use for a read or a write, we should
not move it to the layout plh_return_segs list. If we do, we can end
up returning the layout while I/O is still in progress.

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