|
@@ -7390,6 +7390,8 @@ static int raid5_run(struct mddev *mddev)
|
|
|
set_bit(MD_RECOVERY_RUNNING, &mddev->recovery);
|
|
set_bit(MD_RECOVERY_RUNNING, &mddev->recovery);
|
|
|
mddev->sync_thread = md_register_thread(md_do_sync, mddev,
|
|
mddev->sync_thread = md_register_thread(md_do_sync, mddev,
|
|
|
"reshape");
|
|
"reshape");
|
|
|
|
|
+ if (!mddev->sync_thread)
|
|
|
|
|
+ goto abort;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Ok, everything is just fine now */
|
|
/* Ok, everything is just fine now */
|