Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347723
b: refs/heads/master
c: 4539f14
h: refs/heads/master
i:
  347721: 6a419f5
  347719: 10f7b00
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Dec 10, 2012
1 parent d880f10 commit 64c9de7
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 903d9bf0edebc9d9f06df125ab2bd57b4aa4e78e
refs/heads/master: 4539f14981ce02d48b212786a41c8bcfb62851b4
9 changes: 5 additions & 4 deletions trunk/fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ static int nfsd_init_socks(struct net *net)
return 0;
}

static bool nfsd_up = false;
static int nfsd_users = 0;

static int nfsd_startup_generic(int nrservs)
{
int ret;

if (nfsd_up)
if (nfsd_users++)
return 0;

/*
Expand All @@ -233,9 +233,11 @@ static int nfsd_startup_generic(int nrservs)

static void nfsd_shutdown_generic(void)
{
if (--nfsd_users)
return;

nfs4_state_shutdown();
nfsd_racache_shutdown();
nfsd_up = false;
}

static int nfsd_startup_net(int nrservs, struct net *net)
Expand All @@ -260,7 +262,6 @@ static int nfsd_startup_net(int nrservs, struct net *net)
goto out_lockd;

nn->nfsd_net_up = true;
nfsd_up = true;
return 0;

out_lockd:
Expand Down

0 comments on commit 64c9de7

Please sign in to comment.