rnbd-srv: use bdev_discard_alignment
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083917 commit 18292faa Author: Christoph Hellwig <hch@lst.de> Date: Mon Apr 18 06:53:13 2022 +0200 rnbd-srv: use bdev_discard_alignment Use bdev_discard_alignment to calculate the correct discard alignment offset even for partitions instead of just looking at the queue limit. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by:
Jack Wang <jinpu.wang@ionos.com> 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-11-hch@lst.de Signed-off-by:
Jens Axboe <axboe@kernel.dk> Signed-off-by:
Ming Lei <ming.lei@redhat.com>
Please register or sign in to comment