drbd: reset congestion information before reporting it in /proc/drbd
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 14 Jun 2012 13:19:26 +0000 (15:19 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 24 Jul 2012 12:07:48 +0000 (14:07 +0200)
commit88437879fbd0ac5cde3f683f8eee455bbf83aaac
treefe9c271b08c3bf88cabd8c6f3933ae7938ebb779
parentc2ba686f353972cc89a006ffb6bab7ba1822271e
drbd: reset congestion information before reporting it in /proc/drbd

We cache the congestion status in mdev->congestion_reason whenever
drbd_congested() was called.
Reset this cached info before reporting it when reading /proc/drbd.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_proc.c