drbd: remove a bogus bdi_rw_congested call
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 09:06:19 +0000 (11:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Jul 2020 23:05:53 +0000 (17:05 -0600)
bdi_rw_congested returns congestion state, so calling it without
looking at the return value doesn't make much sense.

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

index 1c41cd9982a257acf7f41450c67a8a4fe303c5d2..3c0193de24983050be7d409327714fd065bfa425 100644 (file)
@@ -265,7 +265,6 @@ int drbd_seq_show(struct seq_file *seq, void *v)
                        seq_printf(seq, "%2d: cs:Unconfigured\n", i);
                } else {
                        /* reset device->congestion_reason */
-                       bdi_rw_congested(device->rq_queue->backing_dev_info);
 
                        nc = rcu_dereference(first_peer_device(device)->connection->net_conf);
                        wp = nc ? nc->wire_protocol - DRBD_PROT_A + 'A' : ' ';