summaryrefslogtreecommitdiff
path: root/net/sunrpc/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-13 12:52:10 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:09 -0500
commitdff02d499c067bdde589b764321b35fe763569f6 (patch)
treea0a9c1259f7dad55c5ad2be8ae6d33a8417d64fb /net/sunrpc/netns.h
parent961a828df64979d2a9faeeeee043391670a193b9 (diff)
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.h5
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;