summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-03 07:41:00 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-25 16:18:58 +0200
commit8c40c7c4836a1ff9e5e840e5ab28526392a5724c (patch)
tree3c3dfb2207d8c6cefa77144fec5716850376a703 /drivers/block/drbd/drbd_worker.c
parentmd: don't detour through bd_contains for the gendisk (diff)
downloadlinux-8c40c7c4836a1ff9e5e840e5ab28526392a5724c.tar.xz
linux-8c40c7c4836a1ff9e5e840e5ab28526392a5724c.zip
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>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index 7c903de5c4e1..9107b109ba7b 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -1672,7 +1672,7 @@ void drbd_resync_after_changed(struct drbd_device *device)
void drbd_rs_controller_reset(struct drbd_device *device)
{
- struct gendisk *disk = device->ldev->backing_bdev->bd_contains->bd_disk;
+ struct gendisk *disk = device->ldev->backing_bdev->bd_disk;
struct fifo_buffer *plan;
atomic_set(&device->rs_sect_in, 0);