NLM: tear down RPC clients in nlm_shutdown_hosts
commitd801b861681116ea23a7fb87a70bf463d29c8b9c
authorJeff Layton <jlayton@redhat.com>
Tue, 29 Jan 2008 15:30:55 +0000 (29 10:30 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:15 +0000 (1 16:42 -0500)
treedcc35c5c93461c452942fe5954badd034d8a2939
parent0113ab34644649aceaac37ef4b7e5c7d5c183be3
NLM: tear down RPC clients in nlm_shutdown_hosts

It's possible for a RPC to outlive the lockd daemon that created it, so
we need to make sure that all RPC's are killed when lockd is coming
down. When nlm_shutdown_hosts is called, kill off all RPC tasks
associated with the host. Since we need to wait until they have all gone
away, we might as well just shut down the RPC client altogether.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/host.c