Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

raid5: don't set the discard_alignment queue limit

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>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
3d50d368 44d58370

-1
-1
drivers/md/raid5.c
··· 7785 7785 */ 7786 7786 stripe = stripe * PAGE_SIZE; 7787 7787 stripe = roundup_pow_of_two(stripe); 7788 - mddev->queue->limits.discard_alignment = stripe; 7789 7788 mddev->queue->limits.discard_granularity = stripe; 7790 7789 7791 7790 blk_queue_max_write_zeroes_sectors(mddev->queue, 0);