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.

dasd: 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 PAGE_SIZE while the discard granularity is the block size
that is smaller or the same as PAGE_SIZE as done by dasd is mostly
harmless but also useless.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
c3f76529 3d50d368

-1
-1
drivers/s390/block/dasd_fba.c
··· 782 782 blk_queue_segment_boundary(q, PAGE_SIZE - 1); 783 783 784 784 q->limits.discard_granularity = logical_block_size; 785 - q->limits.discard_alignment = PAGE_SIZE; 786 785 787 786 /* Calculate max_discard_sectors and make it PAGE aligned */ 788 787 max_bytes = USHRT_MAX * logical_block_size;