summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index a34f58772022..b59cc100320a 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -3177,8 +3177,10 @@ static int raid1_run(struct mddev *mddev)
3177 if (IS_ERR(conf)) 3177 if (IS_ERR(conf))
3178 return PTR_ERR(conf); 3178 return PTR_ERR(conf);
3179 3179
3180 if (mddev->queue) 3180 if (mddev->queue) {
3181 blk_queue_max_write_same_sectors(mddev->queue, 0); 3181 blk_queue_max_write_same_sectors(mddev->queue, 0);
3182 blk_queue_max_write_zeroes_sectors(mddev->queue, 0);
3183 }
3182 3184
3183 rdev_for_each(rdev, mddev) { 3185 rdev_for_each(rdev, mddev) {
3184 if (!mddev->gendisk) 3186 if (!mddev->gendisk)