From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: Re: [PATCH 11/18] fs: Introduce per-bucket inode hash locks Date: Fri, 8 Oct 2010 18:51:09 +1100 Message-ID: <20101008075109.GU4681@dastard> References: <1286515292-15882-1-git-send-email-david@fromorbit.com> <1286515292-15882-12-git-send-email-david@fromorbit.com> <20101008073306.GD7831@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Christoph Hellwig Return-path: Content-Disposition: inline In-Reply-To: <20101008073306.GD7831@lst.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Oct 08, 2010 at 03:33:06AM -0400, Christoph Hellwig wrote: > On Fri, Oct 08, 2010 at 04:21:25PM +1100, Dave Chinner wrote: > > From: Nick Piggin > > > > Protect the inod hash with a single lock is not scalable. Convert > > s/inod/inode/ > > > p = &root->inode_tree.rb_node; > > parent = NULL; > > > > - if (hlist_unhashed(&inode->i_hash)) > > + if (hlist_bl_unhashed(&inode->i_hash)) > > Maybe introduce an inode_unhashed helper for this check which we're > doing in quite a lot of places? Ok, makes sense. Cheers, Dave. -- Dave Chinner david@fromorbit.com