From: Andrew Morton <akpm@digeo.com>
To: John Stoffel <stoffel@lucent.com>
Cc: Thomas.Downing@ipc.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 2.5.70-mm2
Date: Thu, 29 May 2003 14:35:36 -0700 [thread overview]
Message-ID: <20030529143536.438b14a0.akpm@digeo.com> (raw)
In-Reply-To: <16086.31229.258838.80234@gargle.gargle.HOWL>
"John Stoffel" <stoffel@lucent.com> wrote:
>
>
> Does 2.5.70-mm2 include the RAID1 patch posted by Niel?
No. It seems that it didn't work right.
Zwane had a different fix, but afaik nobody has tried it out. Apart from
Zwane of course. And that was against raid0.
Zwane's RAID0 patch
diff -puN drivers/md/raid0.c~zwane-raid-double-free-fix drivers/md/raid0.c
--- 25/drivers/md/raid0.c~zwane-raid-double-free-fix Thu May 29 14:32:02 2003
+++ 25-akpm/drivers/md/raid0.c Thu May 29 14:32:02 2003
@@ -85,10 +85,8 @@ static int create_strip_zones (mddev_t *
conf->devlist = kmalloc(sizeof(mdk_rdev_t*)*
conf->nr_strip_zones*mddev->raid_disks,
GFP_KERNEL);
- if (!conf->devlist) {
- kfree(conf);
+ if (!conf->devlist)
return 1;
- }
memset(conf->strip_zone, 0,sizeof(struct strip_zone)*
conf->nr_strip_zones);
@@ -194,7 +192,6 @@ static int create_strip_zones (mddev_t *
return 0;
abort:
kfree(conf->devlist);
- kfree(conf->strip_zone);
return 1;
}
Neil's RAID1 patch
diff -puN drivers/md/raid1.c~neilb-raid1-double-free-fix drivers/md/raid1.c
--- 25/drivers/md/raid1.c~neilb-raid1-double-free-fix Thu May 29 14:34:23 2003
+++ 25-akpm/drivers/md/raid1.c Thu May 29 14:34:23 2003
@@ -137,7 +137,7 @@ static void put_all_bios(conf_t *conf, r
BUG();
bio_put(r1_bio->read_bio);
r1_bio->read_bio = NULL;
- }
+ } else
for (i = 0; i < conf->raid_disks; i++) {
struct bio **bio = r1_bio->write_bios + i;
if (*bio) {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2003-05-29 21:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-29 16:48 2.5.70-mm2 Downing, Thomas
2003-05-29 17:36 ` 2.5.70-mm2 Andrew Morton
2003-05-29 21:22 ` 2.5.70-mm2 John Stoffel
2003-05-29 21:35 ` Andrew Morton [this message]
2003-05-29 20:08 ` 2.5.70-mm2 Paul Larson
-- strict thread matches above, loose matches on Subject: below --
2003-05-29 19:08 2.5.70-mm2 Downing, Thomas
2003-05-29 8:29 2.5.70-mm2 Andrew Morton
2003-05-29 8:49 ` 2.5.70-mm2 Andrew Morton
2003-05-29 11:23 ` 2.5.70-mm2 Andrew Morton
2003-05-30 20:05 ` 2.5.70-mm2 John Stoffel
2003-05-30 20:30 ` 2.5.70-mm2 Andrew Morton
2003-05-30 20:56 ` 2.5.70-mm2 John Stoffel
2003-05-30 22:36 ` 2.5.70-mm2 Mingming Cao
2003-05-29 21:52 ` 2.5.70-mm2 Badari Pulavarty
2003-05-30 11:17 ` 2.5.70-mm2 Andrew Morton
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=20030529143536.438b14a0.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=Thomas.Downing@ipc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=stoffel@lucent.com \
/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