aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorTrela, Maciej <Maciej.Trela@intel.com>2010-03-08 00:02:44 -0500
committerNeilBrown <neilb@suse.de>2010-05-18 01:27:48 -0400
commit9af204cf720cedf369cf823bbd806c350201f7ea (patch)
tree6aa684772cc1ba978e9dd0f67c3e0d5592588ca3 /drivers/md/md.c
parent54071b3808ee3dc8624d9d6f1b06c4fd5308fa3b (diff)
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 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)
3045 mddev->layout = mddev->new_layout; 3045 mddev->layout = mddev->new_layout;
3046 mddev->chunk_sectors = mddev->new_chunk_sectors; 3046 mddev->chunk_sectors = mddev->new_chunk_sectors;
3047 mddev->delta_disks = 0; 3047 mddev->delta_disks = 0;
3048 if (mddev->pers->sync_request == NULL) {
3049 /* this is now an array without redundancy, so
3050 * it must always be in_sync
3051 */
3052 mddev->in_sync = 1;
3053 del_timer_sync(&mddev->safemode_timer);
3054 }
3048 pers->run(mddev); 3055 pers->run(mddev);
3049 mddev_resume(mddev); 3056 mddev_resume(mddev);
3050 set_bit(MD_CHANGE_DEVS, &mddev->flags); 3057 set_bit(MD_CHANGE_DEVS, &mddev->flags);