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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:27:30 +0000 (18:27 +0100)
commitf128de17c8d46a0dba5db32206d198551b111e17
tree709787ada0e1ee428ca85a8355f46340783c3829
parent1b42712e43e5d574a985661e336e48b0f6ba06b6
pNFS: We want return-on-close to complete when evicting the inode

commit 078000d02d57f02dde61de4901f289672e98c8bc upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h