aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/host.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 96070bff93fc..c252a1c95857 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -161,15 +161,9 @@ nlm_destroy_host(struct nlm_host *host)
161 */ 161 */
162 nsm_unmonitor(host); 162 nsm_unmonitor(host);
163 163
164 if ((clnt = host->h_rpcclnt) != NULL) { 164 clnt = host->h_rpcclnt;
165 if (atomic_read(&clnt->cl_users)) { 165 if (clnt != NULL)
166 printk(KERN_WARNING 166 rpc_shutdown_client(clnt);
167 "lockd: active RPC handle\n");
168 clnt->cl_dead = 1;
169 } else {
170 rpc_destroy_client(host->h_rpcclnt);
171 }
172 }
173 kfree(host); 167 kfree(host);
174} 168}
175 169