Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153657
b: refs/heads/master
c: ea068ba
h: refs/heads/master
i:
  153655: 52ce6c1
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Apr 28, 2009
1 parent 785d004 commit 5ff8de4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 0a5372d8a13c3f670bf7c9c4a68ab04c3664fa28
refs/heads/master: ea068bad27cefc71ab03230dbf01a8f8d98da5ba
19 changes: 10 additions & 9 deletions trunk/fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,17 +939,18 @@ static ssize_t __write_ports_addfd(char *buf)
if (err != 0)
return err;

err = svc_addsock(nfsd_serv, fd, buf);
if (err >= 0) {
err = lockd_up();
if (err < 0)
svc_sock_names(buf + strlen(buf) + 1, nfsd_serv, buf);
err = lockd_up();
if (err != 0)
goto out;

/* Decrease the count, but don't shut down the service */
nfsd_serv->sv_nrthreads--;
}
err = svc_addsock(nfsd_serv, fd, buf);
if (err < 0)
lockd_down();

return err < 0 ? err : 0;
out:
/* Decrease the count, but don't shut down the service */
nfsd_serv->sv_nrthreads--;
return err;
}

/*
Expand Down

0 comments on commit 5ff8de4

Please sign in to comment.