diff options
-rw-r--r-- | fs/nfsd/nfs4callback.c | 1 | ||||
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
2 files changed, 3 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: | |||
486 | /* Success or failure, now we're either waiting for lease expiration | 486 | /* Success or failure, now we're either waiting for lease expiration |
487 | * or deleg_return. */ | 487 | * or deleg_return. */ |
488 | dprintk("NFSD: nfs4_cb_recall: dp %p dl_flock %p dl_count %d\n",dp, dp->dl_flock, atomic_read(&dp->dl_count)); | 488 | dprintk("NFSD: nfs4_cb_recall: dp %p dl_flock %p dl_count %d\n",dp, dp->dl_flock, atomic_read(&dp->dl_count)); |
489 | put_nfs4_client(clp); | ||
489 | nfs4_put_delegation(dp); | 490 | nfs4_put_delegation(dp); |
490 | return; | 491 | return; |
491 | } | 492 | } |
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index e706c6961691..6f182d25793d 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1345,6 +1345,7 @@ void nfsd_break_deleg_cb(struct file_lock *fl) | |||
1345 | * lock) we know the server hasn't removed the lease yet, we know | 1345 | * lock) we know the server hasn't removed the lease yet, we know |
1346 | * it's safe to take a reference: */ | 1346 | * it's safe to take a reference: */ |
1347 | atomic_inc(&dp->dl_count); | 1347 | atomic_inc(&dp->dl_count); |
1348 | atomic_inc(&dp->dl_client->cl_count); | ||
1348 | 1349 | ||
1349 | spin_lock(&recall_lock); | 1350 | spin_lock(&recall_lock); |
1350 | list_add_tail(&dp->dl_recall_lru, &del_recall_lru); | 1351 | list_add_tail(&dp->dl_recall_lru, &del_recall_lru); |
@@ -1367,6 +1368,7 @@ void nfsd_break_deleg_cb(struct file_lock *fl) | |||
1367 | printk(KERN_INFO "NFSD: Callback thread failed for " | 1368 | printk(KERN_INFO "NFSD: Callback thread failed for " |
1368 | "for client (clientid %08x/%08x)\n", | 1369 | "for client (clientid %08x/%08x)\n", |
1369 | clp->cl_clientid.cl_boot, clp->cl_clientid.cl_id); | 1370 | clp->cl_clientid.cl_boot, clp->cl_clientid.cl_id); |
1371 | put_nfs4_client(dp->dl_client); | ||
1370 | nfs4_put_delegation(dp); | 1372 | nfs4_put_delegation(dp); |
1371 | } | 1373 | } |
1372 | } | 1374 | } |