Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 18 Mar 2003 00:28:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 18 Mar 2003 00:28:00 -0500 Received: from tone.orchestra.cse.unsw.EDU.AU ([129.94.242.28]:56522 "HELO tone.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with SMTP id ; Tue, 18 Mar 2003 00:28:00 -0500 From: Neil Brown To: Simon Kirby Date: Tue, 18 Mar 2003 16:38:42 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15990.45282.847803.279070@notabene.cse.unsw.edu.au> Cc: linux-kernel@vger.kernel.org Subject: Re: [2.5.65] MD RAID1 weirdness In-Reply-To: message from Simon Kirby on Monday March 17 References: <20030318053335.GA673@netnation.com> X-Mailer: VM 7.08 under Emacs 20.7.2 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D 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/