From 5bc1651c64ddf89cd824d5b233cf1079292a2cd7 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 29 Jan 2008 10:30:55 -0500 Subject: [PATCH] --- yaml --- r: 82499 b: refs/heads/master c: d801b861681116ea23a7fb87a70bf463d29c8b9c h: refs/heads/master i: 82497: b70c7b1abca63cbb87b18d79b8d86a0e65371643 82495: 33e76dea44a232303e7a9165038e324664ff62d4 v: v3 --- [refs] | 2 +- trunk/fs/lockd/host.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 32a6b3def4e7..02edc385f255 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0113ab34644649aceaac37ef4b7e5c7d5c183be3 +refs/heads/master: d801b861681116ea23a7fb87a70bf463d29c8b9c diff --git a/trunk/fs/lockd/host.c b/trunk/fs/lockd/host.c index ebec0098efbf..ca6b16fc3101 100644 --- a/trunk/fs/lockd/host.c +++ b/trunk/fs/lockd/host.c @@ -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 */