Commit b807a2c5 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

drbd: remove dead code in device_to_statistics

Ever since the switch to blk-mq, a lower device not used for VM
writeback will not be marked congested, so the check will never
trigger.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 402dd2cf
...@@ -3370,7 +3370,6 @@ static void device_to_statistics(struct device_statistics *s, ...@@ -3370,7 +3370,6 @@ static void device_to_statistics(struct device_statistics *s,
if (get_ldev(device)) { if (get_ldev(device)) {
struct drbd_md *md = &device->ldev->md; struct drbd_md *md = &device->ldev->md;
u64 *history_uuids = (u64 *)s->history_uuids; u64 *history_uuids = (u64 *)s->history_uuids;
struct request_queue *q;
int n; int n;
spin_lock_irq(&md->uuid_lock); spin_lock_irq(&md->uuid_lock);
...@@ -3384,11 +3383,6 @@ static void device_to_statistics(struct device_statistics *s, ...@@ -3384,11 +3383,6 @@ static void device_to_statistics(struct device_statistics *s,
spin_unlock_irq(&md->uuid_lock); spin_unlock_irq(&md->uuid_lock);
s->dev_disk_flags = md->flags; s->dev_disk_flags = md->flags;
q = bdev_get_queue(device->ldev->backing_bdev);
s->dev_lower_blocked =
bdi_congested(q->backing_dev_info,
(1 << WB_async_congested) |
(1 << WB_sync_congested));
put_ldev(device); put_ldev(device);
} }
s->dev_size = drbd_get_capacity(device->this_bdev); s->dev_size = drbd_get_capacity(device->this_bdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment