From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Piggin Subject: Re: [PATCH 17/19] fs: Reduce inode I_FREEING and factor inode disposal Date: Tue, 19 Oct 2010 14:54:15 +1100 Message-ID: <20101019035415.GA3256@amd> References: <1287216853-17634-1-git-send-email-david@fromorbit.com> <1287216853-17634-18-git-send-email-david@fromorbit.com> <20101017013047.GA4394@infradead.org> <20101017024923.GA6453@amd> <20101017041313.GJ32255@dastard> <20101017043514.GA21802@amd> <20101017051310.GA22060@amd> <20101017065245.GE29677@dastard> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dave Chinner , Nick Piggin , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Sage Weil Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Oct 18, 2010 at 02:27:02PM -0700, Sage Weil wrote: > I took a look at this code and was able to remove the i_lock -> > dcache_lock nesting. To be honest, I'm not sure why I did it that way in > the first place. The only point (now) where i_lock is used/needed is > while checking the ceph inode flags, and that's done without holding > dcache_lock (presumably soon to be d_lock). Great, it was a bit nasty of ceph to add that in without documenting it, but I guess it got past reviewers so it was up to them to ack it or point it out. I think we should probably enforce a rule that dcache_lock not nest inside i_lock :) Anybody wanting to do that in future had better have a really good reason. > The patch is 622386be in the for-next branch of > git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git > > Anyway, hope this helps! It does, thanks.