]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: don't detour through bd_contains for the gendisk
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:41:00 +0000 (07:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:58 +0000 (08:18 -0600)
commit88e22a8690356136b34ce3c84cc8e0ff2e1e122b
tree3c3dfb2207d8c6cefa77144fec5716850376a703
parentf5815ee09f3110e6d3f1a339d12a4f747bb2bc4f
drbd: don't detour through bd_contains for the gendisk

bd_disk is set on all block devices, including those for partitions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c