Return-Path: linux-nfs-owner@vger.kernel.org Received: from mailhub.sw.ru ([195.214.232.25]:38543 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933546Ab1JYN5Z (ORCPT ); Tue, 25 Oct 2011 09:57:25 -0400 Subject: [PATCH v2 1/4] SUNRPC: rpcbind clients internals virtualization To: Trond.Myklebust@netapp.com From: Stanislav Kinsbursky Cc: linux-nfs@vger.kernel.org, xemul@parallels.com, neilb@suse.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bfields@fieldses.org, davem@davemloft.net, devel@openvz.org Date: Tue, 25 Oct 2011 17:57:52 +0300 Message-ID: <20111025135749.5286.57091.stgit@localhost6.localdomain6> In-Reply-To: <20111025135637.5286.89632.stgit@localhost6.localdomain6> References: <20111025135637.5286.89632.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-nfs-owner@vger.kernel.org List-ID: This patch moves static rpcbind internals to sunrpc part of network namespace context. This will allow to create rcpbind clients per network namespace. Signed-off-by: Stanislav Kinsbursky --- 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 d013bf2..83eede3 100644 --- a/net/sunrpc/netns.h +++ b/net/sunrpc/netns.h @@ -9,6 +9,11 @@ struct cache_detail; struct sunrpc_net { struct proc_dir_entry *proc_net_rpc; struct cache_detail *ip_map_cache; + + 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;