Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206437
b: refs/heads/master
c: 78a8d7c
h: refs/heads/master
i:
  206435: 67669a0
v: v3
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Jul 23, 2010
1 parent 4f2a118 commit 08ee920
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 4ad9a344be2291b1e594a4a5aee25c5a5df34a97
refs/heads/master: 78a8d7c8ca3f0cb5cd2a276c6fc17c8c006d0b3c
12 changes: 8 additions & 4 deletions trunk/fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,14 +950,18 @@ static ssize_t __write_ports_addfd(char *buf)
return err;

err = lockd_up();
if (err != 0)
goto out;
if (err != 0) {
svc_destroy(nfsd_serv);
return err;
}

err = svc_addsock(nfsd_serv, fd, buf, SIMPLE_TRANSACTION_LIMIT);
if (err < 0)
if (err < 0) {
lockd_down();
svc_destroy(nfsd_serv);
return err;
}

out:
/* Decrease the count, but don't shut down the service */
nfsd_serv->sv_nrthreads--;
return err;
Expand Down

0 comments on commit 08ee920

Please sign in to comment.