summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorTrela, Maciej <Maciej.Trela@intel.com>2010-03-08 16:02:44 +1100
committerNeilBrown <neilb@suse.de>2010-05-18 15:27:48 +1000
commit9af204cf720cedf369cf823bbd806c350201f7ea (patch)
tree6aa684772cc1ba978e9dd0f67c3e0d5592588ca3 /drivers/md/md.c
parent54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b (diff)
downloadop-kernel-dev-9af204cf720cedf369cf823bbd806c350201f7ea.zip
op-kernel-dev-9af204cf720cedf369cf823bbd806c350201f7ea.tar.gz
md: Add support for Raid5->Raid0 and Raid10->Raid0 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 22c630b..7dcc740 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3045,6 +3045,13 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
mddev->layout = mddev->new_layout;
mddev->chunk_sectors = mddev->new_chunk_sectors;
mddev->delta_disks = 0;
+ if (mddev->pers->sync_request == NULL) {
+ /* this is now an array without redundancy, so
+ * it must always be in_sync
+ */
+ mddev->in_sync = 1;
+ del_timer_sync(&mddev->safemode_timer);
+ }
pers->run(mddev);
mddev_resume(mddev);
set_bit(MD_CHANGE_DEVS, &mddev->flags);
OpenPOWER on IntegriCloud