From: David Chinner <dgc@sgi.com>
To: Neil Brown <neilb@suse.de>
Cc: Nathan Scott <nathans@sgi.com>,
xfs@oss.sgi.com, linux-raid@vger.kernel.org
Subject: Re: XFS and write barrier
Date: Wed, 19 Jul 2006 03:04:06 +1000 [thread overview]
Message-ID: <20060718170406.GT15160733@melbourne.sgi.com> (raw)
In-Reply-To: <17596.41680.124148.595601@cse.unsw.edu.au>
On Tue, Jul 18, 2006 at 06:58:56PM +1000, Neil Brown wrote:
> On Tuesday July 18, nathans@sgi.com wrote:
> > On Mon, Jul 17, 2006 at 01:32:38AM +0800, Federico Sevilla III wrote:
> > > On Sat, Jul 15, 2006 at 12:48:56PM +0200, Martin Steigerwald wrote:
> > > > I am currently gathering information to write an article about journal
> > > > filesystems with emphasis on write barrier functionality, how it
> > > > works, why journalling filesystems need write barrier and the current
> > > > implementation of write barrier support for different filesystems.
>
> "Journalling filesystems need write barrier" isn't really accurate.
> They can make good use of write barrier if it is supported, and where
> it isn't supported, they should use blkdev_issue_flush in combination
> with regular submit/wait.
blkdev_issue_flush() causes a write cache flush - just like a
barrier typically causes a write cache flush up to the I/O with the
barrier in it. Both of these mechanisms provide the same thing - an
I/O barrier that enforces ordering of I/Os to disk.
Given that filesystems already indicate to the block layer when they
want a barrier, wouldn't it be better to get the block layer to issue
this cache flush if the underlying device doesn't support barriers
and it receives a barrier request?
FWIW, Only XFS and Reiser3 use this function, and only then when
issuing a fsync when barriers are disabled to make sure a common
test (fsync then power cycle) doesn't result in data loss...
> > Noone here seems to know, maybe Neil &| the other folks on linux-raid
> > can help us out with details on status of MD and write barriers?
>
> In 2.6.17, md/raid1 will detect if the underlying devices support
> barriers and if they all do, it will accept barrier requests from the
> filesystem and pass those requests down to all devices.
>
> Other raid levels will reject all barrier requests.
Any particular reason for not supporting barriers on the other types
of RAID?
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2006-07-18 17:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-15 10:48 XFS and write barrier Martin Steigerwald
2006-07-15 19:28 ` Chris Wedgwood
2006-07-16 9:53 ` Martin Steigerwald
2006-07-17 0:43 ` Chris Wedgwood
2006-07-17 1:24 ` Chris Wedgwood
2006-07-16 17:32 ` Federico Sevilla III
2006-07-18 7:31 ` Nathan Scott
2006-07-18 8:58 ` Neil Brown
2006-07-18 17:04 ` David Chinner [this message]
2006-07-18 18:27 ` Martin Steigerwald
2006-07-18 19:21 ` David Chinner
2006-07-20 10:34 ` Martin Steigerwald
2006-07-22 9:31 ` Martin Steigerwald
2006-07-22 10:36 ` Stefan Smietanowski
2006-07-18 23:41 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060718170406.GT15160733@melbourne.sgi.com \
--to=dgc@sgi.com \
--cc=linux-raid@vger.kernel.org \
--cc=nathans@sgi.com \
--cc=neilb@suse.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox