From owner-freebsd-current@FreeBSD.ORG Tue Jul 26 14:02:55 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2958516A41F for ; Tue, 26 Jul 2005 14:02:55 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from haven.freebsd.dk (haven.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0C3B43D48 for ; Tue, 26 Jul 2005 14:02:54 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (unknown [192.168.48.2]) by haven.freebsd.dk (Postfix) with ESMTP id 19B0FBC89; Tue, 26 Jul 2005 14:02:52 +0000 (UTC) To: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 26 Jul 2005 15:58:11 +0200." <86mzo94qks.fsf@xps.des.no> Date: Tue, 26 Jul 2005 16:02:52 +0200 Message-ID: <79045.1122386572@phk.freebsd.dk> Sender: phk@phk.freebsd.dk Cc: Luigi Rizzo , s223560@studenti.ing.unipi.it, current@freebsd.org Subject: Re: multiple pending filesystem requests for the same block ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 14:02:55 -0000 In message <86mzo94qks.fsf@xps.des.no>, =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= writes: >Luigi Rizzo writes: >> can the filesystem code have multiple pending write requests for >> the same disk block ? > >This was discussed on the lists a few weeks ago, and ISTR the >conclusion was that it is the filesystem's responsibility to ensure >this never happens. Not quite. It is legal, but the order is undefined (and indeterminable!). I have a hard time figuring out a filesystem design that could use such writes profitably on regular disks. On raw flash devices however, writes are either "NOR" or "NAND"'ed into the existing data and therefore the order may not be important and therefore, such writes are explicitly legal. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.