diff options
author | Trela, Maciej <Maciej.Trela@intel.com> | 2010-03-08 16:02:44 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 15:27:48 +1000 |
commit | 9af204cf720cedf369cf823bbd806c350201f7ea (patch) | |
tree | 6aa684772cc1ba978e9dd0f67c3e0d5592588ca3 /drivers/md/md.c | |
parent | 54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b (diff) | |
download | blackbird-op-linux-9af204cf720cedf369cf823bbd806c350201f7ea.tar.gz blackbird-op-linux-9af204cf720cedf369cf823bbd806c350201f7ea.zip |
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 22c630b7ba6c..7dcc74089550 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); |