Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127452
b: refs/heads/master
c: c8c23c4
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 736330f commit 0dd7aed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e49323c4ab044d05bbc68cf13cadcbd4372468c
refs/heads/master: c8c23c423dec49cb439697d3dc714e1500ff1610
8 changes: 3 additions & 5 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static struct nsm_handle *nsm_find(const struct sockaddr *sap,
const char *hostname,
const size_t hostname_len,
const int create);
static void nsm_release(struct nsm_handle *nsm);

struct nlm_lookup_host_info {
const int server; /* search for server|client */
Expand Down Expand Up @@ -263,10 +264,8 @@ nlm_destroy_host(struct nlm_host *host)
BUG_ON(!list_empty(&host->h_lockowners));
BUG_ON(atomic_read(&host->h_count));

/*
* Release NSM handle and unmonitor host.
*/
nsm_unmonitor(host);
nsm_release(host->h_nsmhandle);

clnt = host->h_rpcclnt;
if (clnt != NULL)
Expand Down Expand Up @@ -711,8 +710,7 @@ static struct nsm_handle *nsm_find(const struct sockaddr *sap,
/*
* Release an NSM handle
*/
void
nsm_release(struct nsm_handle *nsm)
static void nsm_release(struct nsm_handle *nsm)
{
if (!nsm)
return;
Expand Down
5 changes: 0 additions & 5 deletions trunk/fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ nsm_unmonitor(struct nlm_host *host)
struct nsm_res res;
int status = 0;

if (nsm == NULL)
return 0;
host->h_nsmhandle = NULL;

if (atomic_read(&nsm->sm_count) == 1
&& nsm->sm_monitored && !nsm->sm_sticky) {
dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);
Expand All @@ -132,7 +128,6 @@ nsm_unmonitor(struct nlm_host *host)
else
nsm->sm_monitored = 0;
}
nsm_release(nsm);
return status;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/lockd/lockd.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ void nlm_release_host(struct nlm_host *);
void nlm_shutdown_hosts(void);
extern void nlm_host_rebooted(const struct sockaddr_in *, const char *,
unsigned int, u32);
void nsm_release(struct nsm_handle *);

/*
* Host monitoring
Expand Down

0 comments on commit 0dd7aed

Please sign in to comment.