Subject: Re: Extension of fsync_range() to permit forcing disk cache flushing
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 12/17/2004 07:41:22
--Apple-Mail-40-436830659
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Dec 17, 2004, at 1:08 AM, Manuel Bouyer wrote:

> Also note that you may not want to flush the cache in all cases. For 
> example,
> with SCSI tagged queuing, a write barrier would be enouth to meet this
> constraint.

Not true.  When a SCSI tagged write is "complete", it may only be in 
the drive's cache.  If you really really really want it to be on the 
platter, you need to issue SYNCHRONIZE CACHE or use FUA on the 
individual commands.

         -- Jason R. Thorpe <thorpej@shagadelic.org>


--Apple-Mail-40-436830659
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBwv4iOpVKkaBm8XkRAttLAJ9gWW4r5Z+XbP4+GeTGmQ3feNhwkACghYr6
LlgENDqE1YfMzGHhXEh9PJk=
=o5pB
-----END PGP SIGNATURE-----

--Apple-Mail-40-436830659--