Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:32748 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041Ab3LAOgx (ORCPT ); Sun, 1 Dec 2013 09:36:53 -0500 Date: Sun, 1 Dec 2013 09:36:30 -0500 From: Jeff Layton To: Christoph Hellwig Cc: linux-nfs@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 00/11] [RFC] repair net namespace damage to rpc_pipefs Message-ID: <20131201093630.32e81ada@tlielax.poochiereds.net> In-Reply-To: <20131201131441.790963326@bombadil.infradead.org> References: <20131201131441.790963326@bombadil.infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: On Sun, 01 Dec 2013 05:14:41 -0800 Christoph Hellwig wrote: > This series tries to get rid of the damage created by sprinkling the > network namespace cat poo all over rpc_pipefs and users. > > Instead of getting lost in a maze of notifiers and infrastructure build > around it a cargo cult manner we revert to a slightly nicer version of > the pre-namespace API. > > To do this we just have to create an in-kernel instance of rpc_pipefs > that is mounted at network namespace creation so that all functions can > operated on it. > > As-is this has one major downside: because the initial mount already grabs > a reference to the network namespace we'll create a cyclic reference and > will never free the network namespace. To get around this we'd need > some way to only grab it once user mounts show up / disapear in the VFS. > > Given that the namespace kraken has infected various internal filesystem > and will get more soon I suspect this problem is or will become generic > and will need a proper solution anyway. Al, any good ideas how to deal > with this? Most straight forward way would be to add a counter of > user vfsmount to the superblock and methods when it goes to 1 and 0, > but that seems a bit ugly. Looks like a good set overall -- I'll plan to review it in more detail in the next day or two. If we do take it, it'll need to be reconciled with the set I sent recently that makes some changes in this code: [PATCH v4 0/3] sunrpc/nfs: more reliable detection of running gssd Right offhand, I don't see anything fundamentally at odds with it here, so it's probably a matter of just fixing up the merge of the two. You may want to base the next version of this on top of Trond's "devel" branch since it has those patches. -- Jeff Layton