|
@@ -8694,6 +8694,11 @@ 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));
|
|
|
+ /* wakeup mddev->thread here, so array could
|
|
|
+ * perform resync with the new activated disk */
|
|
|
+ set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
|
|
|
+ md_wakeup_thread(mddev->thread);
|
|
|
+
|
|
|
}
|
|
|
/* device faulty
|
|
|
* We just want to do the minimum to mark the disk
|