Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Feb 2002 19:54:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Feb 2002 19:54:18 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:20755 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Wed, 13 Feb 2002 19:54:01 -0500 Message-ID: <3C6B0A70.D11DFC2A@zip.com.au> Date: Wed, 13 Feb 2002 16:53:04 -0800 From: Andrew Morton X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.18-pre9-ac2 i686) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Phillips CC: Bill Davidsen , lkml Subject: Re: [patch] sys_sync livelock fix In-Reply-To: <3C6B06E5.F6A7AD9F@zip.com.au>, <3C6B06E5.F6A7AD9F@zip.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Daniel Phillips wrote: > > What's the theory behind writing the data both before and after the commit? see fsync_dev(). It starts I/O against existing dirty data, then does various fs-level syncy things which can produce more dirty data - this is where ext3 runs its commit, via brilliant reverse engineering of its calling context :-(. It then again starts I/O against new dirty data then waits on it again. And then again. There's quite a lot of overkill there. But that's OK, as long as it terminates sometime. - - 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/