Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114317
b: refs/heads/master
c: c2526f4
h: refs/heads/master
i:
  114315: a72c4e5
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Sep 29, 2008
1 parent 70d2364 commit 0754172
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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: a26cfad6e0a308a2c68df1f1ef50aabd48b17e6d
refs/heads/master: c2526f42711d93f3455f92a82b5e586880fc44be
19 changes: 11 additions & 8 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,19 @@ static struct nlm_host *nlm_lookup_host(int server,
nlm_get_host(host);
goto out;
}
if (nsm)
atomic_inc(&nsm->sm_count);

host = NULL;

/* Sadly, the host isn't in our hash table yet. See if
* we have an NSM handle for it. If not, create one.
/*
* The host wasn't in our hash table. If we don't
* have an NSM handle for it yet, create one.
*/
if (!nsm && !(nsm = nsm_find(sin, hostname, hostname_len)))
goto out;
if (nsm)
atomic_inc(&nsm->sm_count);
else {
host = NULL;
nsm = nsm_find(sin, hostname, hostname_len);
if (!nsm)
goto out;
}

host = kzalloc(sizeof(*host), GFP_KERNEL);
if (!host) {
Expand Down

0 comments on commit 0754172

Please sign in to comment.