Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555Ab0LWSCX (ORCPT ); Thu, 23 Dec 2010 13:02:23 -0500 Received: from fieldses.org ([174.143.236.118]:49084 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649Ab0LWSCV (ORCPT ); Thu, 23 Dec 2010 13:02:21 -0500 Date: Thu, 23 Dec 2010 13:02:14 -0500 From: "J. Bruce Fields" To: "Kirill A. Shutemov" Cc: Trond Myklebust , Neil Brown , Pavel Emelyanov , linux-nfs@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/12] make rpc_pipefs be mountable multiple times Message-ID: <20101223180214.GA25865@fieldses.org> References: <1292846078-31793-1-git-send-email-kirill@shutemov.name> <20101220144644.GC20643@fieldses.org> <20101221233215.GC7092@shutemov.name> <20101221234520.GA30525@fieldses.org> <20101223065033.GA14006@shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101223065033.GA14006@shutemov.name> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2010 Lines: 41 On Thu, Dec 23, 2010 at 08:50:33AM +0200, Kirill A. Shutemov wrote: > On Tue, Dec 21, 2010 at 06:45:21PM -0500, J. Bruce Fields wrote: > > On Wed, Dec 22, 2010 at 01:32:15AM +0200, Kirill A. Shutemov wrote: > > > On Mon, Dec 20, 2010 at 09:46:44AM -0500, J. Bruce Fields wrote: > > > > By the way, was there ever a resolution to Trond's question?: > > > > > > > > http://marc.info/?l=linux-nfs&m=128655758712817&w=2 > > > > > > > > "The keyring upcalls are currently initiated through the same > > > > mechanism as module_request and therefore get started with the > > > > init_nsproxy namespace. We'd really like them to run inside the > > > > same container as the process. As part of the same problem, > > > > there is the issue of what to do with the dns resolver and > > > > Bryan's new keyring based idmapper code." > > > > > > I'm not sure that I understand the problem correctly. > > > > > > Currently, idmap uses dentry taken from client's cl_rpcclient->cl_path > > > (see nfs_idmap_new()). cl_rpcclient (and cl_path) is initialized with > > > rpcmount resolved against mount namespace of mount process (see > > > nfs_create_rpc_client()). > > > I assume it's correct. > > > > There's actually two separate sets of idmapper code; look at > > fs/nfs/idmapper.c, the first part of the file (between #ifdef > > CONFIG_NFS_USE_NEW_IDMAPPER and #else) is idmapping code that uses > > request_key(). The code you're looking at (including nfs_idmap_new()) > > is later in the file, and deprecated. > > IIUC, we need to save nsproxy of mount process in struct nfs_client and > pass it down to request_key(). I think it's outside of this patchset. OK. Yes, I wasn't expecting this patchset to deal with it, just wondered if there was a plan. --b. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/