when do_md_run fails mddev->pers is not set, so
do_md_stop will not try to write out the superblock
so there is no need to set sb_dirty to 0.
err = do_md_run (mddev);
if (err) {
printk(KERN_WARNING "md :do_md_run() returned %d\n", err);
- /*
- * prevent the writeback of an unrunnable array
- */
- mddev->sb_dirty = 0;
do_md_stop (mddev, 0);
}
}
* we have to clean up the mess if
* the array cannot be run for some
* reason ...
+ * ->pers will not be set, to superblock will
+ * not be updated.
*/
- if (err) {
- mddev->sb_dirty = 0;
+ if (err)
do_md_stop (mddev, 0);
- }
goto done_unlock;
}