lkml.org 
[lkml]   [2003]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: [2.5.65] MD RAID1 weirdness
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.061 / U:1.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site