From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: Proposal for "proper" durable fsync() and fdatasync() Date: Mon, 25 Feb 2008 23:43:19 -0800 Message-ID: <20080225234319.f4589ae4.akpm@linux-foundation.org> References: <20080226072649.GB30238@shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Chris Wedgwood To: Jamie Lokier Return-path: Received: from smtp1.linux-foundation.org ([207.189.120.13]:38765 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755621AbYBZHnf (ORCPT ); Tue, 26 Feb 2008 02:43:35 -0500 In-Reply-To: <20080226072649.GB30238@shareable.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, 26 Feb 2008 07:26:50 +0000 Jamie Lokier wrote: > (It would be nicer if sync_file_range() > took a vector of ranges for better elevator scheduling, but let's > ignore that :-) Two passes: Pass 1: shove each of the segments into the queue with SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE Pass 2: wait for them all to complete and return accumulated result with SYNC_FILE_RANGE_WAIT_AFTER