[patch] fixes for RAID1/RAID5 hot-add/hot-remove, 2.4.0-ac9

Ingo Molnar (mingo@elte.hu)
Mon, 15 Jan 2001 12:51:23 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--655616-1901406066-979559483=:1398
Content-Type: TEXT/PLAIN; charset=US-ASCII

- the attached patch (against -ac9) fixes a bug in the RAID1 and RAID4/5
code that made raidhotremove fail under certain (rare) circumstances.
Please apply.

Ingo

--655616-1901406066-979559483=:1398
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="raidfix-2.4.0-ac9-A0"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0101151251230.1398@e2>
Content-Description:
Content-Disposition: attachment; filename="raidfix-2.4.0-ac9-A0"

LS0tIGxpbnV4L2RyaXZlcnMvbWQvcmFpZDEuYy5vcmlnCU1vbiBEZWMgMTEg
MjI6MTk6MzUgMjAwMA0KKysrIGxpbnV4L2RyaXZlcnMvbWQvcmFpZDEuYwlN
b24gSmFuIDE1IDE0OjQ1OjM1IDIwMDENCkBAIC04MzIsNiArODMyLDcgQEAN
CiAJc3RydWN0IG1pcnJvcl9pbmZvICp0bXAsICpzZGlzaywgKmZkaXNrLCAq
cmRpc2ssICphZGlzazsNCiAJbWRwX3N1cGVyX3QgKnNiID0gbWRkZXYtPnNi
Ow0KIAltZHBfZGlza190ICpmYWlsZWRfZGVzYywgKnNwYXJlX2Rlc2MsICph
ZGRlZF9kZXNjOw0KKwltZGtfcmRldl90ICpzcGFyZV9yZGV2LCAqZmFpbGVk
X3JkZXY7DQogDQogCXByaW50X3JhaWQxX2NvbmYoY29uZik7DQogCW1kX3Nw
aW5fbG9ja19pcnEoJmNvbmYtPmRldmljZV9sb2NrKTsNCkBAIC05ODksNiAr
OTkwLDEwIEBADQogCQkvKg0KIAkJICogZG8gdGhlIHN3aXRjaCBmaW5hbGx5
DQogCQkgKi8NCisJCXNwYXJl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fcmRldiA9IGZp
bmRfcmRldl9ucihtZGRldiwgZmFpbGVkX2Rlc2MtPm51bWJlcik7DQorCQl4
Y2hnX3ZhbHVlcyhzcGFyZV9yZGV2LT5kZXNjX25yLCBmYWlsZWRfcmRldi0+
ZGVzY19ucik7DQorDQogCQl4Y2hnX3ZhbHVlcygqc3BhcmVfZGVzYywgKmZh
aWxlZF9kZXNjKTsNCiAJCXhjaGdfdmFsdWVzKCpmZGlzaywgKnNkaXNrKTsN
CiANCg==
--655616-1901406066-979559483=:1398--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/