/* Properly shut down an RPC client, terminating all outstanding requests.  */
void rpc_shutdown_client(struct rpc_clnt *clnt)
/* Properly shut down an RPC client, terminating all outstanding requests.  */
void rpc_shutdown_client(struct rpc_clnt *clnt)
{
	dprintk("RPC:       shutting down %s client for %s\n",
			clnt->cl_protname, clnt->cl_server);
	while (!list_empty(&clnt->cl_tasks)) {
		rpc_killall_tasks(clnt);
		wait_event_timeout(destroy_wait,
			list_empty(&clnt->cl_tasks), 1*HZ);
	}
	rpc_release_client(clnt);
}