From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] Remove l_flushsema Date: Wed, 30 Apr 2008 06:58:32 -0400 Message-ID: <20080430105832.GA20442@infradead.org> References: <20080430090502.GH14976@parisc-linux.org> <20080430104125.GM108924158@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Matthew Wilcox , xfs@oss.sgi.com, linux-fsdevel@vger.kernel.org To: David Chinner Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:43657 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756177AbYD3K6e (ORCPT ); Wed, 30 Apr 2008 06:58:34 -0400 Content-Disposition: inline In-Reply-To: <20080430104125.GM108924158@sgi.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Apr 30, 2008 at 08:41:25PM +1000, David Chinner wrote: > The only thing that I'm concerned about here is that this will > substantially increase the time the l_icloglock is held. This is > a severely contended lock on large cpu count machines and putting > the wakeup inside this lock will increase the hold time. > > I guess I can address this by adding a new lock for the waitqueue > in a separate patch set. waitqueues are loked internally and don't need synchronization. With a little bit of re-arranging the code the wake_up could probably be moved out of the critical section.