Re: [PATCH 1/1] FS: Add generic data flush to fsync

From: Jan Kara
Date: Fri Apr 11 2014 - 09:00:51 EST


On Fri 11-04-14 00:45:22, Christoph Hellwig wrote:
> On Fri, Apr 11, 2014 at 06:52:42AM +0200, Fabian Frederick wrote:
> > Currently, there's no generic HW flush management support in kernel.
> > Only 7 filesystems have their own way to manage the barrier flag.
> >
> > This patch adds MS_BARRIER in sb_flags and conditionnaly issues the flush
> > in generic_file_fsync.
>
> Please don't add a binary mount option for something thast already is a
> text option in many filesystems. We can actually enable/disable cache
> flushes at the block device level, so I think this can be
> unconditional.
How can those be disabled? I didn't find that by a quick look through
/sys and flush code in kernel...

Honza
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/