Date: Tue, 26 Jul 2005 16:02:52 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Cc: Luigi Rizzo <rizzo@icir.org>, s223560@studenti.ing.unipi.it, current@freebsd.org Subject: Re: multiple pending filesystem requests for the same block ? Message-ID: <79045.1122386572@phk.freebsd.dk> In-Reply-To: Your message of "Tue, 26 Jul 2005 15:58:11 %2B0200." <86mzo94qks.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <86mzo94qks.fsf@xps.des.no>, =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= writes: >Luigi Rizzo <rizzo@icir.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79045.1122386572>