pNFS: We want return-on-close to complete when evicting the inode
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Jan 2021 18:18:03 +0000 (13:18 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 18:32:51 +0000 (13:32 -0500)
commit078000d02d57f02dde61de4901f289672e98c8bc
treee19db5675563da57ea363dc9a87c611f9f995693
parent67bbceedc9bb8ad48993a8bd6486054756d711f4
pNFS: We want return-on-close to complete when evicting the inode

If the inode is being evicted, it should be safe to run return-on-close,
so we should do it to ensure we don't inadvertently leak layout segments.

Fixes: 1c5bd76d17cc ("pNFS: Enable layoutreturn operation for return-on-close")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h