diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-14 16:40:31 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:28 -0400 |
commit | 34f52e3591f241b825353ba27def956d8487c400 (patch) | |
tree | 9f7f0cd52f206095217bd2469e31c2531cbae0a4 /fs/lockd | |
parent | c44fe705530ff9ea5e563bf9b65bdd29defe682b (diff) | |
download | kernel_samsung_aries-34f52e3591f241b825353ba27def956d8487c400.zip kernel_samsung_aries-34f52e3591f241b825353ba27def956d8487c400.tar.gz kernel_samsung_aries-34f52e3591f241b825353ba27def956d8487c400.tar.bz2 |
SUNRPC: Convert rpc_clnt->cl_users to a kref
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/host.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c index 96070bf..c252a1c9 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c @@ -161,15 +161,9 @@ nlm_destroy_host(struct nlm_host *host) */ nsm_unmonitor(host); - if ((clnt = host->h_rpcclnt) != NULL) { - if (atomic_read(&clnt->cl_users)) { - printk(KERN_WARNING - "lockd: active RPC handle\n"); - clnt->cl_dead = 1; - } else { - rpc_destroy_client(host->h_rpcclnt); - } - } + clnt = host->h_rpcclnt; + if (clnt != NULL) + rpc_shutdown_client(clnt); kfree(host); } |