summaryrefslogtreecommitdiffstats
path: root/sound/sh
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-04-18 06:53:07 +0200
committerJens Axboe <axboe@kernel.dk>2022-05-03 10:38:50 -0600
commit62952cc5bccd89b76d710de1d0b43244af0f2903 (patch)
tree5345281eeb00cffa1579beea26b274c76ebe9a2e /sound/sh
parentfb749a87f4536d2fa86ea135ae4eff1072903438 (diff)
downloadlinux-stable-62952cc5bccd89b76d710de1d0b43244af0f2903.tar.gz
linux-stable-62952cc5bccd89b76d710de1d0b43244af0f2903.tar.bz2
linux-stable-62952cc5bccd89b76d710de1d0b43244af0f2903.zip
virtio_blk: fix the discard_granularity and discard_alignment queue limits
The discard_alignment queue limit is named a bit misleading means the offset into the block device at which the discard granularity starts. On the other hand the discard_sector_alignment from the virtio 1.1 looks similar to what Linux uses as discard granularity (even if not very well described): "discard_sector_alignment can be used by OS when splitting a request based on alignment. " And at least qemu does set it to the discard granularity. So stop setting the discard_alignment and use the virtio discard_sector_alignment to set the discard granularity. Fixes: 1f23816b8eb8 ("virtio_blk: add discard and write zeroes support") 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-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'sound/sh')
0 files changed, 0 insertions, 0 deletions