summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-03-25 13:19:42 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-03-27 12:24:36 -0400
commit5fcdfacc01f3a3415b75acb172cd75c9fe1cbda5 (patch)
tree0ecb9fa6a231a8698b7bd963bb2f9c7ae2eece40 /fs
parent0695314ef0920b745423510f1e96bf60415a404a (diff)
downloadop-kernel-dev-5fcdfacc01f3a3415b75acb172cd75c9fe1cbda5.zip
op-kernel-dev-5fcdfacc01f3a3415b75acb172cd75c9fe1cbda5.tar.gz
NFSv4: Return delegations synchronously in evict_inode
Kinglong Mee reports that asynchronous delegations are being killed by the call to rpc_shutdown_client() when unmounting. This can lead to state leakage on the server until the client lease expires. Reported-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/delegation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index a6ad688..08c6244 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -514,7 +514,7 @@ void nfs_inode_return_delegation_noreclaim(struct inode *inode)
delegation = nfs_inode_detach_delegation(inode);
if (delegation != NULL)
- nfs_do_return_delegation(inode, delegation, 0);
+ nfs_do_return_delegation(inode, delegation, 1);
}
/**
OpenPOWER on IntegriCloud