Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945938AbWJZVhw (ORCPT ); Thu, 26 Oct 2006 17:37:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1945939AbWJZVhw (ORCPT ); Thu, 26 Oct 2006 17:37:52 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:31409 "EHLO ZenIV.linux.org.uk") by vger.kernel.org with ESMTP id S1945938AbWJZVhv (ORCPT ); Thu, 26 Oct 2006 17:37:51 -0400 Date: Thu, 26 Oct 2006 22:37:48 +0100 From: Al Viro To: Avi Kivity Cc: Josef Sipek , lkml@pengaru.com, linux-kernel@vger.kernel.org Subject: Re: rename() contention (BUG?) Message-ID: <20061026213748.GM29920@ftp.linux.org.uk> References: <20061025205634.GB9100@shells.gnugeneration.com> <20061025211341.GB7128@filer.fsl.cs.sunysb.edu> <454101D6.9050004@argo.co.il> <20061026192219.GL29920@ftp.linux.org.uk> <4541267C.8040004@argo.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4541267C.8040004@argo.co.il> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1097 Lines: 26 On Thu, Oct 26, 2006 at 11:19:56PM +0200, Avi Kivity wrote: > Al Viro wrote: > >On Thu, Oct 26, 2006 at 08:43:34PM +0200, Avi Kivity wrote: > > > >>The changes make the mutex more efficient, but won't decrease the > >>contention. It seems that all renames in one filesystem are serialized, > >>and if the renames require I/O (which is certainly the case with nfs), > >>rename throughput is severely limited. > >> > > > > They are, and for a good reason. For details see > >Documentation/filesystems/directory-locking. > > > > Is it possible to lock only the common subtree of the two paths? > > Perhaps walk towards the root of the tree, starting with the deeper > path, locking one component at a time. Then walk both paths together > locking components ordered by something to avoid deadlock. Please, read the file mentioned above. - 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/