linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] [RFC] repair net namespace damage to rpc_pipefs
@ 2013-12-01 13:14 Christoph Hellwig
  2013-12-01 13:14 ` [PATCH 01/11] sunrpc: allocate pipefs inodes using kmalloc Christoph Hellwig
                   ` (11 more replies)
  0 siblings, 12 replies; 36+ messages in thread
From: Christoph Hellwig @ 2013-12-01 13:14 UTC (permalink / raw)
  To: linux-nfs, viro; +Cc: linux-fsdevel

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.

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2013-12-03  7:24 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-01 13:14 [PATCH 00/11] [RFC] repair net namespace damage to rpc_pipefs Christoph Hellwig
2013-12-01 13:14 ` [PATCH 01/11] sunrpc: allocate pipefs inodes using kmalloc Christoph Hellwig
     [not found]   ` <20131201132009.815675002-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
2013-12-01 14:26     ` Jeff Layton
2013-12-01 13:14 ` [PATCH 02/11] rpc_pipefs: always mount on net namespace initialization Christoph Hellwig
2013-12-01 15:24   ` Jeff Layton
2013-12-01 13:14 ` [PATCH 03/11] sunrpc: remove the rpc_clients_block notifier Christoph Hellwig
2013-12-01 15:25   ` Jeff Layton
2013-12-01 13:14 ` [PATCH 04/11] sunrpc: no need to have a lock or superblock for rpc_unlink Christoph Hellwig
2013-12-01 13:14 ` [PATCH 05/11] sunprc: add sensible pipe creation and removal helpers Christoph Hellwig
2013-12-01 13:14 ` [PATCH 06/11] sunrpc: clean up rpc_pipefs client dir creation Christoph Hellwig
2013-12-01 13:14 ` [PATCH 07/11] sunrpc: make rpc_mkdir_populate net-namespace aware Christoph Hellwig
2013-12-01 13:14 ` [PATCH 08/11] sunrpc: rpc_get_sb_net, die, die, die Christoph Hellwig
2013-12-01 13:14 ` [PATCH 09/11] nfs: convert idmapper to rpc_mkpipe_clnt Christoph Hellwig
2013-12-01 13:14 ` [PATCH 10/11] auth_gss: convert " Christoph Hellwig
2013-12-01 13:14 ` [PATCH 11/11] sunrpc: rpc_pipefs cleanup Christoph Hellwig
     [not found] ` <20131201131441.790963326-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
2013-12-01 14:36   ` [PATCH 00/11] [RFC] repair net namespace damage to rpc_pipefs Jeff Layton
2013-12-01 15:44   ` Jeff Layton
2013-12-01 15:57     ` Jeff Layton
2013-12-01 18:13   ` Al Viro
     [not found]     ` <20131201181329.GC10323-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
2013-12-02  8:12       ` Christoph Hellwig
2013-12-02 13:44         ` Trond Myklebust
2013-12-02 14:24           ` Stanislav Kinsbursky
     [not found]             ` <529C982B.2030906-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-12-02 15:36               ` Christoph Hellwig
2013-12-02 15:58               ` Trond Myklebust
     [not found]                 ` <5872AE74-DF03-42E2-A21B-F8E35634CD1D-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org>
2013-12-03  7:24                   ` Stanislav Kinsbursky
     [not found]           ` <3C65EB4C-6592-44F8-B08D-E5A9EFD6C8C6-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org>
2013-12-02 15:34             ` Christoph Hellwig
     [not found]               ` <20131202153435.GA2804-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2013-12-02 16:00                 ` Trond Myklebust
     [not found]                   ` <BCED1826-0743-4420-AD45-B38D67EF3D99-7I+n7zu2hftEKMMhf/gKZA@public.gmane.org>
2013-12-02 16:27                     ` Christoph Hellwig
     [not found]                       ` <20131202162716.GA17417-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2013-12-02 16:46                         ` Trond Myklebust
2013-12-02 16:33                   ` Jeff Layton
2013-12-02 16:37                     ` J. Bruce Fields
2013-12-02 16:45                       ` Jeff Layton
2013-12-02 15:57             ` Al Viro
2013-12-02 16:04               ` Trond Myklebust
2013-12-03  2:11       ` [RFC] alloc_pid() breakage Al Viro
2013-12-02  7:23   ` [PATCH 00/11] [RFC] repair net namespace damage to rpc_pipefs Stanislav Kinsbursky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).