From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arjan van de Ven Subject: Re: [PATCH] async: Don't call async_synchronize_full_special() while holding sb_lock Date: Thu, 08 Jan 2009 14:51:52 -0800 Message-ID: <49668388.708@linux.intel.com> References: <1231425472.21528.13.camel@norville.austin.ibm.com> <20090108072111.1ebadebd@infradead.org> <1231429591.27353.14.camel@norville.austin.ibm.com> <20090108225050.GL9448@disturbed> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Dave Kleikamp , Linus Torvalds , Grissiom , linux-kernel@vger.kernel.org, linux-fsdevel Received: from mga06.intel.com ([134.134.136.21]:54195 "EHLO orsmga101.jf.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758802AbZAHWwD (ORCPT ); Thu, 8 Jan 2009 17:52:03 -0500 In-Reply-To: <20090108225050.GL9448@disturbed> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Dave Chinner wrote: > On Thu, Jan 08, 2009 at 09:46:31AM -0600, Dave Kleikamp wrote: >> sync_filesystems() shouldn't be calling async_synchronize_full_special >> while holding a spinlock. The second while loop in that function is the >> right place for this anyway. > > Out of curiousity, what on earth does > async_synchronize_full_special() do and why does it need to be in > sync_filesystems()? > now that we have asynchronous operations, this function makes sure that all the functions that we started async before this point complete, so that what when you sync, you sync all in progress work.