diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-13 12:52:10 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:09 -0500 |
commit | dff02d499c067bdde589b764321b35fe763569f6 (patch) | |
tree | a0a9c1259f7dad55c5ad2be8ae6d33a8417d64fb /net/sunrpc/netns.h | |
parent | 961a828df64979d2a9faeeeee043391670a193b9 (diff) | |
download | linux-3.10-dff02d499c067bdde589b764321b35fe763569f6.tar.gz linux-3.10-dff02d499c067bdde589b764321b35fe763569f6.tar.bz2 linux-3.10-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 0f3af34fa50..1fdeb1ba84b 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; |