linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting 'sync' to flush disk cache?
@ 2006-08-14 18:39 Jeff Garzik
  2006-08-14 19:34 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2006-08-14 18:39 UTC (permalink / raw)
  To: Jens Axboe, Linux Kernel
  Cc: Andrew Morton, SCSI Mailing List, Linux RAID Mailing List

So...  has anybody given any thought to enabling fsync(2), fdatasync(2), 
and sync_file_range(2) issuing a [FLUSH|SYNCHRONIZE] CACHE command?

This has bugged me for _years_, that Linux does not do this.  Looking at 
forums on the web, it bugs a lot of other people too.

My suggestion would be to add a FLUSH op alongside the existing READ and 
WRITE[_SYNC] ops, rather than passing down WRITE_SYNC.  Why?  Doing so 
maintains a 1-1 translation between requests and disk commands, and it 
would allow MD and DM more flexibility in handling this operation.

But that's just a guess.  I'm open to suggestions.

	Jeff



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-14 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14 18:39 Getting 'sync' to flush disk cache? Jeff Garzik
2006-08-14 19:34 ` Arjan van de Ven
2006-08-14 20:15   ` Jens Axboe
2006-08-14 21:04     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).