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.

null_blk: 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 null_blk 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: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
fb749a87 4a04d517

-1
-1
drivers/block/null_blk/main.c
··· 1765 1765 } 1766 1766 1767 1767 nullb->q->limits.discard_granularity = nullb->dev->blocksize; 1768 - nullb->q->limits.discard_alignment = nullb->dev->blocksize; 1769 1768 blk_queue_max_discard_sectors(nullb->q, UINT_MAX >> 9); 1770 1769 } 1771 1770