diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-13 09:52:10 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-01 01:28:09 +0100 |
commit | dff02d499c067bdde589b764321b35fe763569f6 (patch) | |
tree | a0a9c1259f7dad55c5ad2be8ae6d33a8417d64fb /net/sunrpc/netns.h | |
parent | SUNRPC: Fix potential races in xprt_lock_write_next() (diff) | |
download | linux-dff02d499c067bdde589b764321b35fe763569f6.tar.xz linux-dff02d499c067bdde589b764321b35fe763569f6.zip |
SUNRPC: move rpcbind internals to sunrpc part of network namespace context
This patch makes rpcbind logic works in network namespace context. IOW each
network namespace will have it's own unique rpcbind internals (clients and
friends) required for registering svc services per network namespace.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/netns.h')
-rw-r--r-- | net/sunrpc/netns.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/netns.h b/net/sunrpc/netns.h index 0f3af34fa502..1fdeb1ba84bd 100644 --- a/net/sunrpc/netns.h +++ b/net/sunrpc/netns.h @@ -15,6 +15,11 @@ struct sunrpc_net { struct list_head all_clients; spinlock_t rpc_client_lock; + + struct rpc_clnt *rpcb_local_clnt; + struct rpc_clnt *rpcb_local_clnt4; + spinlock_t rpcb_clnt_lock; + unsigned int rpcb_users; }; extern int sunrpc_net_id; |