aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-05 19:21:03 +0200
committerJens Axboe <axboe@fb.com>2017-04-08 11:25:38 -0600
commit3deff1a70d5901342f460f8cc36e5d0c5d51c319 (patch)
treea74cc58c2a3105a9505028c87f8991378979e33c /drivers/md/raid5.c
parentsd: implement REQ_OP_WRITE_ZEROES (diff)
downloadlinux-dev-3deff1a70d5901342f460f8cc36e5d0c5d51c319.tar.xz
linux-dev-3deff1a70d5901342f460f8cc36e5d0c5d51c319.zip
md: support REQ_OP_WRITE_ZEROES
Copy & paste from the REQ_OP_WRITE_SAME code. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
-rw-r--r--drivers/md/raid5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 7aeb9691c2e1..1725a54042bb 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -7270,6 +7270,7 @@ static int raid5_run(struct mddev *mddev)
mddev->queue->limits.discard_zeroes_data = 0;
blk_queue_max_write_same_sectors(mddev->queue, 0);
+ blk_queue_max_write_zeroes_sectors(mddev->queue, 0);
rdev_for_each(rdev, mddev) {
disk_stack_limits(mddev->gendisk, rdev->bdev,