lkml.org 
[lkml]   [2009]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: vfs: Add MS_FLUSHONFSYNC mount flag
On Thu, Feb 12, 2009 at 12:29:52PM -0500, Jeff Garzik wrote:
>> The block device *could* choose to ignore this in hardware if it knows
>> it's built with a nonvolatile write cache or if it has no write cache.
>
> That would certainly be my preference -- turn this ON by default, and
> them if a layer NEEDS to ignore it, it can.

Yeah, and we should integrate this with the barriers settings.

I think the right setup is:

- each gendisk has a variable to indicate if we have a write-back
cache, which is filled from scsi inquiry data (or whatever the
equivalent in the storage protocol is), but we allow an override
from userspace if the admin knows better (if he really does or
wants to play fast and lose is the admin's business)
- filesystems do the right things by using barriers and cache flushes
if they see the underlying device needs it.



\
 
 \ /
  Last update: 2009-02-14 16:39    [W:0.202 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site