]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/md/raid5.c
Merge tag 'for-5.1/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux.git] / drivers / md / raid5.c
index 77ffd09be486da312dd0e3d02067672ad69ee340..c033bfcb209e442ae47b0dcf8a6e0064a833b407 100644 (file)
@@ -6650,6 +6650,7 @@ static struct attribute *raid5_attrs[] =  {
        &raid5_skip_copy.attr,
        &raid5_rmw_level.attr,
        &r5c_journal_mode.attr,
+       &ppl_write_hint.attr,
        NULL,
 };
 static struct attribute_group raid5_attrs_group = {
@@ -7393,6 +7394,8 @@ static int raid5_run(struct mddev *mddev)
                set_bit(MD_RECOVERY_RUNNING, &mddev->recovery);
                mddev->sync_thread = md_register_thread(md_do_sync, mddev,
                                                        "reshape");
+               if (!mddev->sync_thread)
+                       goto abort;
        }
 
        /* Ok, everything is just fine now */