LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Christophe Saout <christophe@saout.de>
To: Andrew Morton <akpm@osdl.org>
Cc: noah <noah123@gmail.com>,
linux-kernel@vger.kernel.org, dm-devel@redhat.com
Subject: Re: Data corruption with raid5/dm-crypt/lvm/reiserfs on 2.6.19.2
Date: Mon, 22 Jan 2007 22:42:21 +0100 [thread overview]
Message-ID: <1169502141.17211.7.camel@leto.intern.saout.de> (raw)
In-Reply-To: <20070122115652.1f7862e1.akpm@osdl.org>
Am Montag, den 22.01.2007, 11:56 -0800 schrieb Andrew Morton:
> There has been a long history of similar problems when raid and dm-crypt
> are used together. I thought a couple of months ago that we were hot on
> the trail of a fix, but I don't think we ever got there. Perhaps
> Christophe can comment?
No, I think it's exactly this bug. Three month ago someone came up with
a very reliable test case and I managed to nail down the bug.
Readaheads that were aborted by the raid5 code (or some layer below)
were signalled using a cleared BIO_UPTODATE bit, but no error code, and
were missed as aborted by dm-crypt (all other layers apparently set the
error code in this case, so this only happened with raid5) which could
mess up the buffer cache.
Anyway, it then turned out this bug was already "accidentally" fixed in
2.6.19 by RedHat in order to play nicely with make_request changes (the
stuff to reduce stack usage with stacked block device layers), that's
why you probably missed that it got fixed. The fix for pre-2.6.19
kernels went into some 2.6.16.x and 2.6.18.6.
next prev parent reply other threads:[~2007-01-22 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 20:11 noah
2007-01-22 19:56 ` Andrew Morton
2007-01-22 21:42 ` Christophe Saout [this message]
2007-02-22 23:43 ` [dm-devel] " Piet Delaney
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=1169502141.17211.7.camel@leto.intern.saout.de \
--to=christophe@saout.de \
--cc=akpm@osdl.org \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=noah123@gmail.com \
--subject='Re: Data corruption with raid5/dm-crypt/lvm/reiserfs on 2.6.19.2' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).