|
@@ -379,8 +379,13 @@ nlm_shutdown_hosts(void)
|
|
|
/* First, make all hosts eligible for gc */
|
|
|
dprintk("lockd: nuking all hosts...\n");
|
|
|
for (chain = nlm_hosts; chain < nlm_hosts + NLM_HOST_NRHASH; ++chain) {
|
|
|
- hlist_for_each_entry(host, pos, chain, h_hash)
|
|
|
+ hlist_for_each_entry(host, pos, chain, h_hash) {
|
|
|
host->h_expires = jiffies - 1;
|
|
|
+ if (host->h_rpcclnt) {
|
|
|
+ rpc_shutdown_client(host->h_rpcclnt);
|
|
|
+ host->h_rpcclnt = NULL;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* Then, perform a garbage collection pass */
|