|
@@ -37,6 +37,7 @@ static struct nsm_handle *nsm_find(const struct sockaddr *sap,
|
|
const char *hostname,
|
|
const char *hostname,
|
|
const size_t hostname_len,
|
|
const size_t hostname_len,
|
|
const int create);
|
|
const int create);
|
|
|
|
+static void nsm_release(struct nsm_handle *nsm);
|
|
|
|
|
|
struct nlm_lookup_host_info {
|
|
struct nlm_lookup_host_info {
|
|
const int server; /* search for server|client */
|
|
const int server; /* search for server|client */
|
|
@@ -263,10 +264,8 @@ nlm_destroy_host(struct nlm_host *host)
|
|
BUG_ON(!list_empty(&host->h_lockowners));
|
|
BUG_ON(!list_empty(&host->h_lockowners));
|
|
BUG_ON(atomic_read(&host->h_count));
|
|
BUG_ON(atomic_read(&host->h_count));
|
|
|
|
|
|
- /*
|
|
|
|
- * Release NSM handle and unmonitor host.
|
|
|
|
- */
|
|
|
|
nsm_unmonitor(host);
|
|
nsm_unmonitor(host);
|
|
|
|
+ nsm_release(host->h_nsmhandle);
|
|
|
|
|
|
clnt = host->h_rpcclnt;
|
|
clnt = host->h_rpcclnt;
|
|
if (clnt != NULL)
|
|
if (clnt != NULL)
|
|
@@ -711,8 +710,7 @@ found:
|
|
/*
|
|
/*
|
|
* Release an NSM handle
|
|
* Release an NSM handle
|
|
*/
|
|
*/
|
|
-void
|
|
|
|
-nsm_release(struct nsm_handle *nsm)
|
|
|
|
|
|
+static void nsm_release(struct nsm_handle *nsm)
|
|
{
|
|
{
|
|
if (!nsm)
|
|
if (!nsm)
|
|
return;
|
|
return;
|