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.

ubd: 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 ubd 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-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
07c6e92a 0b8d7622

-1
-1
arch/um/drivers/ubd_kern.c
··· 799 799 } 800 800 if (ubd_dev->no_trim == 0) { 801 801 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; 802 - ubd_dev->queue->limits.discard_alignment = SECTOR_SIZE; 803 802 blk_queue_max_discard_sectors(ubd_dev->queue, UBD_MAX_REQUEST); 804 803 blk_queue_max_write_zeroes_sectors(ubd_dev->queue, UBD_MAX_REQUEST); 805 804 }