aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/host.c')
-rw-r--r--fs/lockd/host.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 780918acd6f4..1d523c1a7b62 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -37,6 +37,7 @@ static struct nsm_handle *nsm_find(const struct sockaddr *sap,
37 const char *hostname, 37 const char *hostname,
38 const size_t hostname_len, 38 const size_t hostname_len,
39 const int create); 39 const int create);
40static void nsm_release(struct nsm_handle *nsm);
40 41
41struct nlm_lookup_host_info { 42struct nlm_lookup_host_info {
42 const int server; /* search for server|client */ 43 const int server; /* search for server|client */
@@ -263,10 +264,8 @@ nlm_destroy_host(struct nlm_host *host)
263 BUG_ON(!list_empty(&host->h_lockowners)); 264 BUG_ON(!list_empty(&host->h_lockowners));
264 BUG_ON(atomic_read(&host->h_count)); 265 BUG_ON(atomic_read(&host->h_count));
265 266
266 /*
267 * Release NSM handle and unmonitor host.
268 */
269 nsm_unmonitor(host); 267 nsm_unmonitor(host);
268 nsm_release(host->h_nsmhandle);
270 269
271 clnt = host->h_rpcclnt; 270 clnt = host->h_rpcclnt;
272 if (clnt != NULL) 271 if (clnt != NULL)
@@ -711,8 +710,7 @@ found:
711/* 710/*
712 * Release an NSM handle 711 * Release an NSM handle
713 */ 712 */
714void 713static void nsm_release(struct nsm_handle *nsm)
715nsm_release(struct nsm_handle *nsm)
716{ 714{
717 if (!nsm) 715 if (!nsm)
718 return; 716 return;