drbd: remove a bogus bdi_rw_congested call
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>
This commit is contained in:
Родитель
9eb994ec54
Коммит
d5c6983845
|
@ -265,7 +265,6 @@ int drbd_seq_show(struct seq_file *seq, void *v)
|
||||||
seq_printf(seq, "%2d: cs:Unconfigured\n", i);
|
seq_printf(seq, "%2d: cs:Unconfigured\n", i);
|
||||||
} else {
|
} else {
|
||||||
/* reset device->congestion_reason */
|
/* reset device->congestion_reason */
|
||||||
bdi_rw_congested(device->rq_queue->backing_dev_info);
|
|
||||||
|
|
||||||
nc = rcu_dereference(first_peer_device(device)->connection->net_conf);
|
nc = rcu_dereference(first_peer_device(device)->connection->net_conf);
|
||||||
wp = nc ? nc->wire_protocol - DRBD_PROT_A + 'A' : ' ';
|
wp = nc ? nc->wire_protocol - DRBD_PROT_A + 'A' : ' ';
|
||||||
|
|
Загрузка…
Ссылка в новой задаче