summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2007-09-13 02:35:15 +0200
committerJ. Bruce Fields <bfields@citi.umich.edu>2007-10-10 00:31:57 +0200
commitcfdcad4da1903720b9b8c1f176e46a0ebf546be3 (patch)
tree8c8b12074a5d197c427c4907f41492d556da2dd5 /fs/nfsd/nfs4callback.c
parentknfsd: don't shutdown callbacks until nfsv4 client is freed (diff)
downloadlinux-cfdcad4da1903720b9b8c1f176e46a0ebf546be3.tar.xz
linux-cfdcad4da1903720b9b8c1f176e46a0ebf546be3.zip
knfsd: nfsv4 delegation recall should take reference on client
It's not enough to take a reference on the delegation object itself; we need to ensure that the rpc_client won't go away just as we're about to make an rpc call. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index c1cb7e009c1e..9d536a8cb379 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -486,6 +486,7 @@ out_put_cred:
/* Success or failure, now we're either waiting for lease expiration
* or deleg_return. */
dprintk("NFSD: nfs4_cb_recall: dp %p dl_flock %p dl_count %d\n",dp, dp->dl_flock, atomic_read(&dp->dl_count));
+ put_nfs4_client(clp);
nfs4_put_delegation(dp);
return;
}