Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104093
b: refs/heads/master
c: c7d106c
h: refs/heads/master
i:
  104091: 7a8bd49
v: v3
  • Loading branch information
Neil Brown authored and J. Bruce Fields committed Jun 23, 2008
1 parent c9073a9 commit e9ea1fc
Show file tree
Hide file tree
Showing 2 changed files with 7 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: abd1ec4efd82ca06127bce833ad8a4bbec8a0dcb
refs/heads/master: c7d106c90ec40a0e35a6960157b40f238627246e
10 changes: 6 additions & 4 deletions trunk/fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ int nfsd_vers(int vers, enum vers_op change)

int nfsd_nrthreads(void)
{
if (nfsd_serv == NULL)
return 0;
else
return nfsd_serv->sv_nrthreads;
int rv = 0;
mutex_lock(&nfsd_mutex);
if (nfsd_serv)
rv = nfsd_serv->sv_nrthreads;
mutex_unlock(&nfsd_mutex);
return rv;
}

static void nfsd_last_thread(struct svc_serv *serv)
Expand Down

0 comments on commit e9ea1fc

Please sign in to comment.