]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:26:17 +0000 (18:26 +0100)
commit7d1241ae1dce008992fb3a4418ff8c0b550528b0
tree21bb6635bd476bd0af0b4b951f34ca03da1881de
parent69d121ca892c73ad3e7a3df92328a5a693b9ffac
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