]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f40be2a6efcfd06a1108060f6bf41b29e5bd698
treefe9c271b08c3bf88cabd8c6f3933ae7938ebb779
parent1be28f8cfbc5fbf412cf3c80a51501f70b4121dd
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