]> 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)
commitc98e5531774a3f56b55cb2f92cae0537e44bf671
treeda63f9951a96de60922c2c5c5870af9452f78064
parent5f627bf7bad4b12980d24568e60b9d74accf3efc
drbd: use bdev_alignment_offset instead of queue_alignment_offset

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

Fixes: 59b041665fa0 ("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