From: Maciej Trela <maciej.trela@xxxxxxxxx> A new parameter conf->scale_disks was added to raid10 takeover() that cause slot switching in pers->run(). Remove old code for updating device slots. --- drivers/md/raid10.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index a027672..a6ae4a1 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -2435,13 +2435,6 @@ static void *raid10_takeover_raid0(mddev_t *mddev) return ERR_PTR(-EINVAL); } - /* Update slot numbers to obtain - * degraded raid10 with missing mirrors - */ - list_for_each_entry(rdev, &mddev->disks, same_set) { - rdev->raid_disk *= 2; - } - /* Set new parameters */ mddev->new_level = 10; /* new layout: far_copies = 1, near_copies = 2 */ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html