Christoph Hellwig 18292faa89 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>
2022-05-03 10:38:50 -06:00
..
2022-03-21 16:48:55 -07:00
2022-05-03 10:38:50 -06:00
2022-04-18 06:54:09 -06:00
2022-01-17 07:19:40 -07:00
2022-03-04 12:29:21 -07:00
2021-12-16 10:57:04 -07:00
2021-12-16 10:57:04 -07:00
2022-04-17 19:30:47 -06:00
2021-11-29 06:38:35 -07:00
2022-04-17 19:49:59 -06:00
2022-02-02 07:49:59 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00