mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "NeilBrown" <neilb@suse.de>
To: "Ken Milmore" <ken.milmore@googlemail.com>
Cc: linux-kernel@vger.kernel.org, "Jens Axboe" <jens.axboe@oracle.com>
Subject: Re: Write barriers on MD RAID1
Date: Sun, 24 May 2009 11:51:37 +1000 (EST)	[thread overview]
Message-ID: <0fa4b1e19d3edb12931e0d641ce2c7d7.squirrel@neil.brown.name> (raw)
In-Reply-To: <4A188CAD.1080009@googlemail.com>

On Sun, May 24, 2009 9:54 am, Ken Milmore wrote:
>
> 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

Yes, that patch is broken.
the new code it introduces should probably go in the top of
__make_request rather than just before the call to ->make_request_fn.
make_request_fn functions other than __make_request generally
don't use ->next_ordered at all.

Jens?  Would you agree?

NeilBrown


>
> 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-24  1:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-23 23:54 Ken Milmore
2009-05-24  1:51 ` NeilBrown [this message]
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=0fa4b1e19d3edb12931e0d641ce2c7d7.squirrel@neil.brown.name \
    --to=neilb@suse.de \
    --cc=jens.axboe@oracle.com \
    --cc=ken.milmore@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®