aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorTrela Maciej <Maciej.Trela@intel.com>2010-03-08 00:02:42 -0500
committerNeilBrown <neilb@suse.de>2010-05-18 01:27:47 -0400
commit54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b (patch)
treeb254ce6625ce3dd472faac0d59edeb9589b30f2b /drivers/md/md.c
parent84707f38e767ac470fd82af6c45a8cafe2bd1b9a (diff)
md:Add support for Raid0->Raid5 takeover
Signed-off-by: Maciej Trela <maciej.trela@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
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)