Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38374
b: refs/heads/master
c: f0737a3
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Kirch authored and Linus Torvalds committed Oct 4, 2006
1 parent c4b3aaa commit 496f2fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 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: 8dead0dbd478f35fd943f3719591e5af1ac0950d
refs/heads/master: f0737a39a64a9df32bb045c54e1cdf6cecdcbdd7
15 changes: 6 additions & 9 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,13 @@ nlm_lookup_host(int server, const struct sockaddr_in *sin,
if (host->h_server != server)
continue;

{
if (hp != nlm_hosts + hash) {
*hp = host->h_next;
host->h_next = nlm_hosts[hash];
nlm_hosts[hash] = host;
}
nlm_get_host(host);
mutex_unlock(&nlm_host_mutex);
return host;
if (hp != nlm_hosts + hash) {
*hp = host->h_next;
host->h_next = nlm_hosts[hash];
nlm_hosts[hash] = host;
}
nlm_get_host(host);
goto out;
}

/* Sadly, the host isn't in our hash table yet. See if
Expand Down
8 changes: 5 additions & 3 deletions trunk/fs/lockd/svcsubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result,
* the file.
*/
if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) {
dprintk("lockd: open failed (nfserr %d)\n", ntohl(nfserr));
dprintk("lockd: open failed (error %d)\n", nfserr);
goto out_free;
}

Expand Down Expand Up @@ -313,10 +313,12 @@ nlmsvc_free_host_resources(struct nlm_host *host)
{
dprintk("lockd: nlmsvc_free_host_resources\n");

if (nlm_traverse_files(host, NLM_ACT_UNLOCK))
if (nlm_traverse_files(host, NLM_ACT_UNLOCK)) {
printk(KERN_WARNING
"lockd: couldn't remove all locks held by %s",
"lockd: couldn't remove all locks held by %s\n",
host->h_name);
BUG();
}
}

/*
Expand Down

0 comments on commit 496f2fe

Please sign in to comment.