From: Goldwyn Rodrigues Date: Sun, 20 Dec 2015 23:51:00 +0000 (+1100) Subject: md-cluster: Allow spare devices to be marked as faulty X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=09afd2a8d6ad2c40f3c1ae0b3f83784864cf4c15;p=deliverable%2Flinux.git md-cluster: Allow spare devices to be marked as faulty If a spare device was marked faulty, it would not be reflected in receiving nodes because it would mark it as activated and continue. Continue the operation, so it may be set as faulty. Signed-off-by: Goldwyn Rodrigues Signed-off-by: NeilBrown --- diff --git a/drivers/md/md.c b/drivers/md/md.c index ab3995de0418..f2f855c203e5 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9106,7 +9106,6 @@ static void check_sb_changes(struct mddev *mddev, struct md_rdev *rdev) ret = remove_and_add_spares(mddev, rdev2); pr_info("Activated spare: %s\n", bdevname(rdev2->bdev,b)); - continue; } /* device faulty * We just want to do the minimum to mark the disk