diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 13:21:03 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-08 13:25:38 -0400 |
commit | 3deff1a70d5901342f460f8cc36e5d0c5d51c319 (patch) | |
tree | a74cc58c2a3105a9505028c87f8991378979e33c /drivers/md/raid5.c | |
parent | 02d261034f1c90ac8b052406bd7b18d2564b0b3c (diff) |
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 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 1 |
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) | |||
7270 | mddev->queue->limits.discard_zeroes_data = 0; | 7270 | mddev->queue->limits.discard_zeroes_data = 0; |
7271 | 7271 | ||
7272 | blk_queue_max_write_same_sectors(mddev->queue, 0); | 7272 | blk_queue_max_write_same_sectors(mddev->queue, 0); |
7273 | blk_queue_max_write_zeroes_sectors(mddev->queue, 0); | ||
7273 | 7274 | ||
7274 | rdev_for_each(rdev, mddev) { | 7275 | rdev_for_each(rdev, mddev) { |
7275 | disk_stack_limits(mddev->gendisk, rdev->bdev, | 7276 | disk_stack_limits(mddev->gendisk, rdev->bdev, |