]> git.karo-electronics.de Git - linux-beck.git/commitdiff
md-cluster: Allow spare devices to be marked as faulty
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Sun, 20 Dec 2015 23:51:00 +0000 (10:51 +1100)
committerNeilBrown <neilb@suse.com>
Wed, 6 Jan 2016 00:38:51 +0000 (11:38 +1100)
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 <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c

index ab3995de0418c9ac327dbb441576a1bd0cd1c7f5..f2f855c203e563519649d9a0f4396bdd2db0006c 100644 (file)
@@ -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