public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ken Milmore <ken.milmore@googlemail.com>
To: linux-kernel@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>,
	Neil Brown <neilb@suse.de>
Subject: Write barriers on MD RAID1
Date: Sun, 24 May 2009 00:54:21 +0100	[thread overview]
Message-ID: <4A188CAD.1080009@googlemail.com> (raw)


Support for write barriers on MD RAID1 devices appears to be broken on 
2.6.29 and later kernels.  Mounting an ext3 or ext4 filesystem over an 
md raid1 block device gives the kernel message:

   JBD: barrier-based sync failed on md0 - disabling barriers

Is this intentional?  It looks like a regression to me, since write 
barriers (ostensibly) worked for MD RAID1 on earlier kernels (well, all 
of the 2.6.27 series at least...)

Doing a git bisect suggested that this is the culprit:

commit cec0707e40ae25794b5a2de7b7f03c51961f80d9
Author: Jens Axboe <jens.axboe@oracle.com>
Date:   Tue Jan 13 15:28:32 2009 +0100

     block: silently error an unsupported barrier bio

Rolling this back from 2.6.29.4 made the JBD error message go away for 
me.  I tried to do some disk benchmarking to determine if write barriers 
were really still working, but the results were not very conclusive.

Details of test setup:
- 2.6.29.4 kernel (config from slackware-current)
- ext3 filesystem (mounted with barrier=1), also tried ext4
- MD RAID1 block device over two SATA disks
- Intel motherboard AHCI controller (82801)

I got similar behaviour on a virtualised setup using qemu, with the RAID 
over two emulated IDE disks.

Please contact me if I can provide any further information.

-Ken Milmore.


             reply	other threads:[~2009-05-23 23:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-23 23:54 Ken Milmore [this message]
2009-05-24  1:51 ` Write barriers on MD RAID1 NeilBrown
2009-06-21 13:57   ` Ken Milmore
2009-06-24  3:43     ` Neil Brown
2009-06-24  7:09       ` [dm-devel] " Alasdair G Kergon
2009-06-24  7:34         ` NeilBrown
2009-06-24  7:38       ` Jens Axboe
2009-06-24  9:28         ` 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=4A188CAD.1080009@googlemail.com \
    --to=ken.milmore@googlemail.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@suse.de \
    /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