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.

dm-zoned: 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 dm-zoned is mostly
harmless but also useless.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
44d58370 62952cc5

+1 -1
+1 -1
drivers/md/dm-zoned-target.c
··· 1001 1001 blk_limits_io_min(limits, DMZ_BLOCK_SIZE); 1002 1002 blk_limits_io_opt(limits, DMZ_BLOCK_SIZE); 1003 1003 1004 - limits->discard_alignment = DMZ_BLOCK_SIZE; 1004 + limits->discard_alignment = 0; 1005 1005 limits->discard_granularity = DMZ_BLOCK_SIZE; 1006 1006 limits->max_discard_sectors = chunk_sectors; 1007 1007 limits->max_hw_discard_sectors = chunk_sectors;