]> www.infradead.org Git - users/hch/block.git/commitdiff
raid5: don't set the discard_alignment queue limit
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Apr 2022 09:34:17 +0000 (11:34 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 06:50:02 +0000 (08:50 +0200)
The discard_alignment queue limit is named a bit misleading means the
offset into the block device at which the discard granularity starts.
Setting it to the discard granularity as done by raid5 is mostly
harmless but also useless.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/md/raid5.c

index 59f91e392a2ae87ae9b81d715da969eb40f78e74..39b0afdf40d0a938c964a5c55a7adb0ab1e5d17a 100644 (file)
@@ -7749,7 +7749,6 @@ static int raid5_run(struct mddev *mddev)
                 */
                stripe = stripe * PAGE_SIZE;
                stripe = roundup_pow_of_two(stripe);
-               mddev->queue->limits.discard_alignment = stripe;
                mddev->queue->limits.discard_granularity = stripe;
 
                blk_queue_max_write_zeroes_sectors(mddev->queue, 0);