summaryrefslogtreecommitdiff
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorTrela Maciej <Maciej.Trela@intel.com>2010-03-08 05:02:42 (GMT)
committerNeilBrown <neilb@suse.de>2010-05-18 05:27:47 (GMT)
commit54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b (patch)
treeb254ce6625ce3dd472faac0d59edeb9589b30f2b /drivers/md/md.c
parent84707f38e767ac470fd82af6c45a8cafe2bd1b9a (diff)
downloadlinux-54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b.tar.xz
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 2a64cba..22c630b 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)
mddev->to_remove = &md_redundancy_group;
}
+ if (mddev->pers->sync_request == NULL &&
+ mddev->external) {
+ /* We are converting from a no-redundancy array
+ * to a redundancy array and metadata is managed
+ * externally so we need to be sure that writes
+ * won't block due to a need to transition
+ * clean->dirty
+ * until external management is started.
+ */
+ mddev->in_sync = 0;
+ mddev->safemode_delay = 0;
+ mddev->safemode = 0;
+ }
+
module_put(mddev->pers->owner);
/* Invalidate devices that are now superfluous */
list_for_each_entry(rdev, &mddev->disks, same_set)