public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET] Refactor barrier=/nobarrier flags from fs to block layer
@ 2011-01-26  7:12 Darrick J. Wong
  2011-01-26  7:16 ` [PATCH 1/3] block: Create sysfs knobs to override FLUSH/FUA support flags Darrick J. Wong
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Darrick J. Wong @ 2011-01-26  7:12 UTC (permalink / raw)
  To: Tejun Heo, Vivek Goyal, axboe, tytso, shli, neilb, adilger.kernel,
	jack, snitzer, linux-kernel, kmannth, cmm, linux-ext4, rwheeler,
	hch, josef

Hello,

>From what I can tell, most of the filesystems that know how to issue commands
to flush the write cache also have some mechanism for the user to override
whether or not the filesystem actually issues those flushes.  Unfortunately,
the term "barrier" is obsolete having been changed into flushes in 2.6.36, and
many of the filesystems implement the mount options with slightly different
syntaxes (barrier=[0|1|none|flush], nobarrier, etc).

This patchset adds to the block layer a sysfs knob that an administrator can
use to disable flushes, and removes the mount options from the filesystem code.
As a starting point, I'm removing the mount options and flush toggle from
jbd2/ext4.

Anyway, I'm looking for some feedback about refactoring the barrier/flush
control knob into the block layer.  It sounds like we want a knob that picks
the safest option (issue flushes when supported) unless the administrator
decides that it is appropriate to do otherwise.  I suspect that there are good
arguments for not having a knob at all, and good arguments for a safe knob.
However, since I don't see the barrier options being removed en masse, I'm
assuming that we still want a knob somewhere.  Do we need the ignore_fua knob
too?  Is this the proper way to deprecate mount options out of filesystems?

--D

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

end of thread, other threads:[~2011-02-05 16:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26  7:12 [PATCHSET] Refactor barrier=/nobarrier flags from fs to block layer Darrick J. Wong
2011-01-26  7:16 ` [PATCH 1/3] block: Create sysfs knobs to override FLUSH/FUA support flags Darrick J. Wong
2011-01-26  9:30   ` Tejun Heo
2011-01-26 17:00     ` Darrick J. Wong
2011-02-05 16:20   ` Greg KH
2011-01-26  7:18 ` [PATCH 2/3] jbd2: Remove barrier feature conditional flag (or: always issue flushes) Darrick J. Wong
2011-01-26  7:23 ` [PATCH 3/3] ext4: Deprecate barrier= and nobarrier mount options Darrick J. Wong
2011-01-26  9:36   ` Tejun Heo
2011-01-26 10:47     ` Jan Kara
2011-01-26 10:51       ` Tejun Heo
2011-01-26 12:16       ` Ric Wheeler
2011-01-26 12:21         ` Tejun Heo
2011-01-26 13:29       ` torn5
2011-01-26 11:47 ` [PATCHSET] Refactor barrier=/nobarrier flags from fs to block layer Ric Wheeler
2011-01-26 11:49 ` Ric Wheeler
2011-01-26 16:41   ` Eric Sandeen
2011-01-26 17:24     ` Darrick J. Wong
2011-01-28 11:16       ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox