Re: [2.5.65] MD RAID1 weirdness

Neil Brown (neilb@cse.unsw.edu.au)
Tue, 18 Mar 2003 16:38:42 +1100


On Monday March 17, sim@netnation.com wrote:
> Just booted from 2.5.65-BK6 to 2.5.65 after an unexpected lockup in X,
> and found weird MD messages at boot followed by an amazingly fast
> (broken :)) resync. /proc/mdstat now reports:

Sorry 'bout that.

Should be fixed by following patch.

NeilBrown

diff ./drivers/md/raid1.c~current~ ./drivers/md/raid1.c
--- ./drivers/md/raid1.c~current~ 2003-03-15 14:40:12.000000000 +1100
+++ ./drivers/md/raid1.c 2003-03-17 09:39:57.000000000 +1100
@@ -840,7 +840,8 @@ static void sync_request_write(mddev_t *
* we read from here, no need to write
*/
continue;
- if (conf->mirrors[i].rdev->in_sync && mddev->in_sync)
+ if (conf->mirrors[i].rdev->in_sync &&
+ r1_bio->sector + (bio->bi_size>>9) <= mddev->recovery_cp)
/*
* don't need to write this we are just rebuilding
*/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/