Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347711
b: refs/heads/master
c: db6e182
h: refs/heads/master
i:
  347709: b1d0101
  347707: f148fed
  347703: ba4f3dd
  347695: 9f7d58f
  347679: 78e3cf0
  347647: 599f33f
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Dec 10, 2012
1 parent e2ed61c commit bac08eb
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f7fb86c6e639360ad9c253cec534819ef928a674
refs/heads/master: db6e182c17cb1a7069f7f8924721ce58ac05d9a3
8 changes: 4 additions & 4 deletions trunk/fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,18 @@ int nfsd_nrthreads(void)
return rv;
}

static int nfsd_init_socks(void)
static int nfsd_init_socks(struct net *net)
{
int error;
if (!list_empty(&nfsd_serv->sv_permsocks))
return 0;

error = svc_create_xprt(nfsd_serv, "udp", &init_net, PF_INET, NFS_PORT,
error = svc_create_xprt(nfsd_serv, "udp", net, PF_INET, NFS_PORT,
SVC_SOCK_DEFAULTS);
if (error < 0)
return error;

error = svc_create_xprt(nfsd_serv, "tcp", &init_net, PF_INET, NFS_PORT,
error = svc_create_xprt(nfsd_serv, "tcp", net, PF_INET, NFS_PORT,
SVC_SOCK_DEFAULTS);
if (error < 0)
return error;
Expand All @@ -218,7 +218,7 @@ static int nfsd_startup(int nrservs)
ret = nfsd_racache_init(2*nrservs);
if (ret)
return ret;
ret = nfsd_init_socks();
ret = nfsd_init_socks(net);
if (ret)
goto out_racache;
ret = lockd_up(net);
Expand Down

0 comments on commit bac08eb

Please sign in to comment.