diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-27 12:00:49 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 16:16:12 +0200 |
commit | 4fb8518bdac8e85f6580ea3f586adf396cd472bc (patch) | |
tree | 887efb838b220afdd147faa1281d21cf0ee83cd8 /net/sunrpc/svc_xprt.c | |
parent | sunrpc: Add routines that allow registering per-net caches (diff) | |
download | linux-4fb8518bdac8e85f6580ea3f586adf396cd472bc.tar.xz linux-4fb8518bdac8e85f6580ea3f586adf396cd472bc.zip |
sunrpc: Tag svc_xprt with net
The transport representation should be per-net of course.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 385d822419ca..f7e8915051b1 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -130,6 +130,7 @@ static void svc_xprt_free(struct kref *kref) struct module *owner = xprt->xpt_class->xcl_owner; if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) svcauth_unix_info_release(xprt); + put_net(xprt->xpt_net); xprt->xpt_ops->xpo_free(xprt); module_put(owner); } @@ -159,6 +160,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); } EXPORT_SYMBOL_GPL(svc_xprt_init); |