Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946112AbWKAFk4 (ORCPT ); Wed, 1 Nov 2006 00:40:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946512AbWKAFkB (ORCPT ); Wed, 1 Nov 2006 00:40:01 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:61329 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S1946522AbWKAFj5 (ORCPT ); Wed, 1 Nov 2006 00:39:57 -0500 Message-Id: <20061101054004.729703000@sous-sol.org> References: <20061101053340.305569000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Tue, 31 Oct 2006 21:34:08 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, Andrew Morton Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, alan@lxorguk.ukuu.org.uk, NeilBrown , linux-raid@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 28/61] md: Fix bug where spares dont always get rebuilt properly when they become live. Content-Disposition: inline; filename=md-fix-bug-where-spares-don-t-always-get-rebuilt-properly-when-they-become-live.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 35 -stable review patch. If anyone has any objections, please let us know. ------------------ From: NeilBrown If save_raid_disk is >= 0, then the device could be a device that is already in sync that is being re-added. So we need to default this value to -1. Signed-off-by: Neil Brown Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- drivers/md/md.c | 1 + 1 file changed, 1 insertion(+) --- linux-2.6.18.1.orig/drivers/md/md.c +++ linux-2.6.18.1/drivers/md/md.c @@ -1994,6 +1994,7 @@ static mdk_rdev_t *md_import_device(dev_ kobject_init(&rdev->kobj); rdev->desc_nr = -1; + rdev->saved_raid_disk = -1; rdev->flags = 0; rdev->data_offset = 0; rdev->sb_events = 0; -- - 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/