]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: use bdev_alignment_offset instead of queue_alignment_offset
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:37 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commit00ece1d2c31631ed9f96316838587bf76c4a67f4
treeda63f9951a96de60922c2c5c5870af9452f78064
parentbe88640bd98b49ead4e715fe1c87000f54632a09
drbd: use bdev_alignment_offset instead of queue_alignment_offset

The bdev version does the right thing for partitions, so use that.

Fixes: 97d3229a3d25 ("drbd: introduce WRITE_SAME support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220415045258.199825-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c