diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2011-12-06 14:19:10 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-12-06 16:20:42 -0500 |
commit | bd4620ddf6d6eb3d9e7d073ad601fa4299d46ba9 (patch) | |
tree | 26625283079a642b4241b7b75482a0a558dd5ca9 /net/sunrpc/svc_xprt.c | |
parent | 94cf3179ccfc69d727dd884fd0831d82ada6bb06 (diff) | |
download | blackbird-op-linux-bd4620ddf6d6eb3d9e7d073ad601fa4299d46ba9.tar.gz blackbird-op-linux-bd4620ddf6d6eb3d9e7d073ad601fa4299d46ba9.zip |
SUNRPC: create svc_xprt in proper network namespace
This patch makes svc_xprt inherit network namespace link from its socket.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 0d80c064e634..0633c7e2fe63 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -148,8 +148,8 @@ EXPORT_SYMBOL_GPL(svc_xprt_put); * Called by transport drivers to initialize the transport independent * portion of the transport instance. */ -void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt, - struct svc_serv *serv) +void svc_xprt_init(struct net *net, struct svc_xprt_class *xcl, + struct svc_xprt *xprt, struct svc_serv *serv) { memset(xprt, 0, sizeof(*xprt)); xprt->xpt_class = xcl; @@ -164,7 +164,7 @@ void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt, spin_lock_init(&xprt->xpt_lock); set_bit(XPT_BUSY, &xprt->xpt_flags); rpc_init_wait_queue(&xprt->xpt_bc_pending, "xpt_bc_pending"); - xprt->xpt_net = get_net(&init_net); + xprt->xpt_net = get_net(net); } EXPORT_SYMBOL_GPL(svc_xprt_init); |