[PATCH 12/12] lockd: remove redundant rpc_shutdown_client()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These clients will all be shut down by nlm_destroy_host() when we do
garbage collection a little later, so this is redundant.

XXX: Ask Jeff Layton why he added this again?

Signed-off-by: J. Bruce Fields <bfields@xxxxxxxxxxxxxx>
---
 fs/lockd/host.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 73c2be2..0387c6b 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -602,14 +602,8 @@ static void expire_hosts(struct host_table *table)
 	struct hlist_node *pos;
 	struct nlm_host	*host;
 
-	dprintk("lockd: nuking all hosts...\n");
-	for_each_host(host, pos, chain, table) {
+	for_each_host(host, pos, chain, table)
 		host->h_expires = jiffies - 1;
-		if (host->h_rpcclnt) {
-			rpc_shutdown_client(host->h_rpcclnt);
-			host->h_rpcclnt = NULL;
-		}
-	}
 }
 
 /*
-- 
1.5.5.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux