Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127453
b: refs/heads/master
c: 356c3eb
h: refs/heads/master
i:
  127451: 736330f
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 0dd7aed commit 14fe45f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 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: c8c23c423dec49cb439697d3dc714e1500ff1610
refs/heads/master: 356c3eb466fd1a12afd6448d90fba3922836e5f1
15 changes: 9 additions & 6 deletions trunk/fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,19 @@ int nsm_monitor(const struct nlm_host *host)
return status;
}

/*
* Cease to monitor remote host
/**
* nsm_unmonitor - Unregister peer notification
* @host: pointer to nlm_host of peer to stop monitoring
*
* If this peer is monitored, this function sends an upcall to
* tell the local rpc.statd not to send this peer a notification
* when we reboot.
*/
int
nsm_unmonitor(struct nlm_host *host)
void nsm_unmonitor(const struct nlm_host *host)
{
struct nsm_handle *nsm = host->h_nsmhandle;
struct nsm_res res;
int status = 0;
int status;

if (atomic_read(&nsm->sm_count) == 1
&& nsm->sm_monitored && !nsm->sm_sticky) {
Expand All @@ -128,7 +132,6 @@ nsm_unmonitor(struct nlm_host *host)
else
nsm->sm_monitored = 0;
}
return status;
}

/*
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/lockd/lockd.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ extern void nlm_host_rebooted(const struct sockaddr_in *, const char *,
* Host monitoring
*/
int nsm_monitor(const struct nlm_host *host);
void nsm_unmonitor(const struct nlm_host *host);

/*
* This is used in garbage collection and resource reclaim
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/lockd/sm_inter.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ struct nsm_res {
u32 state;
};

int nsm_unmonitor(struct nlm_host *);
extern int nsm_local_state;

#endif /* LINUX_LOCKD_SM_INTER_H */

0 comments on commit 14fe45f

Please sign in to comment.