Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934807AbXEWP0l (ORCPT ); Wed, 23 May 2007 11:26:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756670AbXEWP0b (ORCPT ); Wed, 23 May 2007 11:26:31 -0400 Received: from mail-gw3.sa.ew.hu ([212.108.200.82]:33287 "EHLO mail-gw3.sa.ew.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755168AbXEWP0a (ORCPT ); Wed, 23 May 2007 11:26:30 -0400 To: viro@ftp.linux.org.uk CC: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org In-reply-to: <20070523150602.GZ4095@ftp.linux.org.uk> (message from Al Viro on Wed, 23 May 2007 16:06:02 +0100) Subject: Re: [RFC PATCH] file as directory References: <20070523095127.GQ4095@ftp.linux.org.uk> <20070523102437.GS4095@ftp.linux.org.uk> <20070523113925.GT4095@ftp.linux.org.uk> <20070523121620.GU4095@ftp.linux.org.uk> <20070523135140.GW4095@ftp.linux.org.uk> <20070523150602.GZ4095@ftp.linux.org.uk> Message-Id: From: Miklos Szeredi Date: Wed, 23 May 2007 17:25:49 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 22 > > How will this work with copy_tree() and namespace duplication, which > > currently walk the tree with only namespace_sem held? > > Easy - grab namespace_sem, grab vfsmount_lock, walk the subtree and bump > mnt_busy on everything (by 1 + number of non-busy children). Then drop > vfsmount_lock and do as usual, dropping references in tree being copied > as you go. Nothing will get attached or detached due to namespace_sem, > nothing will get evicted by anybody other than you since you've got all > that stuff pinned down. End of story... Right. Do you have some code? Should I try to code something up? Miklos - 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/