Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309829
b: refs/heads/master
c: 4db7769
h: refs/heads/master
i:
  309827: 60327c3
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Jun 1, 2012
1 parent 5bdc052 commit 67e42e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 91c427ac3a61ccabae0fdef53563edf40394b6c9
refs/heads/master: 4db77695bf5738bdafa83d1b58b64cbecc6f55e7
12 changes: 5 additions & 7 deletions trunk/fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ static int make_socks(struct svc_serv *serv, struct net *net)
return err;
}

static int lockd_up_net(struct net *net)
static int lockd_up_net(struct svc_serv *serv, struct net *net)
{
struct lockd_net *ln = net_generic(net, lockd_net_id);
struct svc_serv *serv = nlmsvc_rqst->rq_server;
int error;

if (ln->nlmsvc_users++)
Expand All @@ -276,10 +275,9 @@ static int lockd_up_net(struct net *net)
return error;
}

static void lockd_down_net(struct net *net)
static void lockd_down_net(struct svc_serv *serv, struct net *net)
{
struct lockd_net *ln = net_generic(net, lockd_net_id);
struct svc_serv *serv = nlmsvc_rqst->rq_server;

if (ln->nlmsvc_users) {
if (--ln->nlmsvc_users == 0) {
Expand Down Expand Up @@ -307,7 +305,7 @@ int lockd_up(struct net *net)
* Check whether we're already up and running.
*/
if (nlmsvc_rqst) {
error = lockd_up_net(net);
error = lockd_up_net(nlmsvc_rqst->rq_server, net);
goto out;
}

Expand Down Expand Up @@ -378,7 +376,7 @@ int lockd_up(struct net *net)
return error;

err_start:
lockd_down_net(net);
lockd_down_net(serv, net);
goto destroy_and_out;
}
EXPORT_SYMBOL_GPL(lockd_up);
Expand All @@ -390,7 +388,7 @@ void
lockd_down(struct net *net)
{
mutex_lock(&nlmsvc_mutex);
lockd_down_net(net);
lockd_down_net(nlmsvc_rqst->rq_server, net);
if (nlmsvc_users) {
if (--nlmsvc_users)
goto out;
Expand Down

0 comments on commit 67e42e6

Please sign in to comment.