aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 2a64cba9ea72..22c630b7ba6c 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3017,6 +3017,20 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
3017 mddev->to_remove = &md_redundancy_group; 3017 mddev->to_remove = &md_redundancy_group;
3018 } 3018 }
3019 3019
3020 if (mddev->pers->sync_request == NULL &&
3021 mddev->external) {
3022 /* We are converting from a no-redundancy array
3023 * to a redundancy array and metadata is managed
3024 * externally so we need to be sure that writes
3025 * won't block due to a need to transition
3026 * clean->dirty
3027 * until external management is started.
3028 */
3029 mddev->in_sync = 0;
3030 mddev->safemode_delay = 0;
3031 mddev->safemode = 0;
3032 }
3033
3020 module_put(mddev->pers->owner); 3034 module_put(mddev->pers->owner);
3021 /* Invalidate devices that are now superfluous */ 3035 /* Invalidate devices that are now superfluous */
3022 list_for_each_entry(rdev, &mddev->disks, same_set) 3036 list_for_each_entry(rdev, &mddev->disks, same_set)