From: Ken Milmore <ken.milmore@googlemail.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-kernel@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>
Subject: Re: Write barriers on MD RAID1
Date: Sun, 21 Jun 2009 14:57:29 +0100 [thread overview]
Message-ID: <4A3E3C49.7010907@googlemail.com> (raw)
In-Reply-To: <0fa4b1e19d3edb12931e0d641ce2c7d7.squirrel@neil.brown.name>
I thought I had better bump my previous post as this regression is still
present in 2.6.29.5.
To recap, commit cec0707e40ae25794b5a2de7b7f03c51961f80d9 has broken
write barriers on md raid1 block devices in 2.6.29 and later kernels.
Reversing this commit appears to fix the problem.
Please let me know if I'm harassing the wrong maintainers here!
-Ken.
NeilBrown wrote:
> 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.
>>
>
>
next prev parent reply other threads:[~2009-06-21 13:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-23 23:54 Write barriers on MD RAID1 Ken Milmore
2009-05-24 1:51 ` NeilBrown
2009-06-21 13:57 ` Ken Milmore [this message]
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=4A3E3C49.7010907@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