Messages in this thread | | | Subject | Re: Disk write cache | From | Andi Kleen <> | Date | Sun, 15 May 2005 18:56:09 +0200 |
| |
Jeff Garzik <jgarzik@pobox.com> writes: > > The ability of a filesystem or fsync(2) to cause a [FLUSH|SYNC] CACHE > command to be generated has only been present in the most recent 2.6.x > kernels. See the "write barrier" stuff that people have been > discussing.
Are you sure mainline does it for fsync() file data at all? iirc it was only done for journal writes in reiserfs/xfs/jbd. However since I suppose a lot of disks flush everything pending on a flush cache command it still works assuming the file systems write the data to disk in fsync before syncing the journal. I don't know if they do that.
-Andi - 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/
| |