diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index aa9ed304951e..06c2cbe046e2 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -3651,8 +3651,7 @@ static int run(struct mddev *mddev) | |||
3651 | if (mddev->queue) { | 3651 | if (mddev->queue) { |
3652 | blk_queue_max_discard_sectors(mddev->queue, | 3652 | blk_queue_max_discard_sectors(mddev->queue, |
3653 | mddev->chunk_sectors); | 3653 | mddev->chunk_sectors); |
3654 | blk_queue_max_write_same_sectors(mddev->queue, | 3654 | blk_queue_max_write_same_sectors(mddev->queue, 0); |
3655 | mddev->chunk_sectors); | ||
3656 | blk_queue_io_min(mddev->queue, chunk_size); | 3655 | blk_queue_io_min(mddev->queue, chunk_size); |
3657 | if (conf->geo.raid_disks % conf->geo.near_copies) | 3656 | if (conf->geo.raid_disks % conf->geo.near_copies) |
3658 | blk_queue_io_opt(mddev->queue, chunk_size * conf->geo.raid_disks); | 3657 | blk_queue_io_opt(mddev->queue, chunk_size * conf->geo.raid_disks); |