Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294410
b: refs/heads/master
c: f7a30c1
h: refs/heads/master
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and Trond Myklebust committed Feb 1, 2012
1 parent 2378a83 commit abbb315
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 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: 977ac3157328239a0f4074b13a3d9eb5c832cd6c
refs/heads/master: f7a30c18e8d673c996095420a026a28433cb4096
4 changes: 2 additions & 2 deletions trunk/include/linux/sunrpc/clnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void rpc_shutdown_client(struct rpc_clnt *);
void rpc_release_client(struct rpc_clnt *);
void rpc_task_release_client(struct rpc_task *);

int rpcb_create_local(void);
void rpcb_put_local(void);
int rpcb_create_local(struct net *);
void rpcb_put_local(struct net *);
int rpcb_register(struct net *, u32, u32, int, unsigned short);
int rpcb_v4_register(struct net *net, const u32 program,
const u32 version,
Expand Down
7 changes: 3 additions & 4 deletions trunk/net/sunrpc/rpcb_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ static int rpcb_get_local(struct net *net)
return cnt;
}

void rpcb_put_local(void)
void rpcb_put_local(struct net *net)
{
struct sunrpc_net *sn = net_generic(&init_net, sunrpc_net_id);
struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
struct rpc_clnt *clnt = sn->rpcb_local_clnt;
struct rpc_clnt *clnt4 = sn->rpcb_local_clnt4;
int shutdown;
Expand Down Expand Up @@ -323,11 +323,10 @@ static int rpcb_create_local_net(struct net *net)
* Returns zero on success, otherwise a negative errno value
* is returned.
*/
int rpcb_create_local(void)
int rpcb_create_local(struct net *net)
{
static DEFINE_MUTEX(rpcb_create_local_mutex);
int result = 0;
struct net *net = &init_net;

if (rpcb_get_local(net))
return result;
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ static int svc_rpcb_setup(struct svc_serv *serv)
{
int err;

err = rpcb_create_local();
err = rpcb_create_local(&init_net);
if (err)
return err;

Expand All @@ -384,7 +384,7 @@ static int svc_rpcb_setup(struct svc_serv *serv)
void svc_rpcb_cleanup(struct svc_serv *serv)
{
svc_unregister(serv);
rpcb_put_local();
rpcb_put_local(&init_net);
}
EXPORT_SYMBOL_GPL(svc_rpcb_cleanup);

Expand Down

0 comments on commit abbb315

Please sign in to comment.