diff options
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 6338c0fe6208..95916fd6394a 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c | |||
@@ -345,7 +345,6 @@ static int raid0_run(mddev_t *mddev) | |||
345 | if (md_check_no_bitmap(mddev)) | 345 | if (md_check_no_bitmap(mddev)) |
346 | return -EINVAL; | 346 | return -EINVAL; |
347 | blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); | 347 | blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); |
348 | mddev->queue->queue_lock = &mddev->queue->__queue_lock; | ||
349 | 348 | ||
350 | /* if private is not null, we are here after takeover */ | 349 | /* if private is not null, we are here after takeover */ |
351 | if (mddev->private == NULL) { | 350 | if (mddev->private == NULL) { |
@@ -654,6 +653,7 @@ static void *raid0_takeover_raid1(mddev_t *mddev) | |||
654 | mddev->new_layout = 0; | 653 | mddev->new_layout = 0; |
655 | mddev->new_chunk_sectors = 128; /* by default set chunk size to 64k */ | 654 | mddev->new_chunk_sectors = 128; /* by default set chunk size to 64k */ |
656 | mddev->delta_disks = 1 - mddev->raid_disks; | 655 | mddev->delta_disks = 1 - mddev->raid_disks; |
656 | mddev->raid_disks = 1; | ||
657 | /* make sure it will be not marked as dirty */ | 657 | /* make sure it will be not marked as dirty */ |
658 | mddev->recovery_cp = MaxSector; | 658 | mddev->recovery_cp = MaxSector; |
659 | 659 | ||