Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127467
b: refs/heads/master
c: 8c7378f
h: refs/heads/master
i:
  127465: 842ef3d
  127463: 483c3e3
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 336263c commit 312d989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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: 3420a8c4359a189f7d854ed7075d151257415447
refs/heads/master: 8c7378fd2a5f22016542931b887a2ae98d146eaf
20 changes: 2 additions & 18 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,30 +453,14 @@ void nlm_release_host(struct nlm_host *host)
*/
void nlm_host_rebooted(const struct nlm_reboot *info)
{
__be32 *p = (__be32 *)&info->priv.data;
const struct sockaddr_in sin = {
.sin_family = AF_INET,
.sin_addr.s_addr = *p,
};
struct hlist_head *chain;
struct hlist_node *pos;
struct nsm_handle *nsm;
struct nlm_host *host;

nsm = nsm_find((struct sockaddr *)&sin, sizeof(sin),
info->mon, info->len, 0);
if (nsm == NULL) {
dprintk("lockd: never saw rebooted peer '%.*s' before\n",
info->len, info->mon);
nsm = nsm_reboot_lookup(info);
if (unlikely(nsm == NULL))
return;
}

dprintk("lockd: nlm_host_rebooted(%.*s, %s)\n",
info->len, info->mon, nsm->sm_addrbuf);

/* When reclaiming locks on this peer, make sure that
* we set up a new notification */
nsm->sm_monitored = 0;

/* Mark all hosts tied to this NSM state as having rebooted.
* We run the loop repeatedly, because we drop the host table
Expand Down

0 comments on commit 312d989

Please sign in to comment.