From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanislav Kinsbursky Subject: Re: [PATCH 3/5] SUNRPC: create GSS auth cache per network namespace Date: Thu, 19 Jan 2012 21:04:40 +0400 Message-ID: <4F184D28.3030207@parallels.com> References: <20120119144517.9957.59143.stgit@localhost6.localdomain6> <20120119144922.9957.39352.stgit@localhost6.localdomain6> <20120119163149.GD527@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Trond.Myklebust@netapp.com" , "linux-nfs@vger.kernel.org" , Pavel Emelianov , "neilb@suse.de" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , James Bottomley , "davem@davemloft.net" , "devel@openvz.org" To: "J. Bruce Fields" Return-path: In-Reply-To: <20120119163149.GD527@fieldses.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 19.01.2012 20:31, J. Bruce Fields =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Thu, Jan 19, 2012 at 06:49:23PM +0400, Stanislav Kinsbursky wrote: >> @@ -1000,6 +996,7 @@ static int svcauth_gss_handle_init(struct svc_r= qst *rqstp, >> struct xdr_netobj tmpobj; >> struct rsi *rsip, rsikey; >> int ret; >> + struct sunrpc_net *sn =3D net_generic(rqstp->rq_xprt->xpt_net, sun= rpc_net_id); > > OK, so you're getting the network namespace out of the rqstp, and, th= en > passing it down, makes sense. And: > >> @@ -1079,6 +1076,7 @@ svcauth_gss_accept(struct svc_rqst *rqstp, __b= e32 *authp) >> __be32 *rpcstart; >> __be32 *reject_stat =3D resv->iov_base + resv->iov_len; >> int ret; >> + struct sunrpc_net *sn =3D net_generic(rqstp->rq_xprt->xpt_net, sun= rpc_net_id); > > ... same for the gss cache. Looks good. > > How do you plan to test this? > Do you mean something special or in general? Currently I validate all my chages in container by using simple test en= vironment. I would be appreciate for any hints to tests, than can help. --=20 Best regards, Stanislav Kinsbursky