]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: report congestion if we are waiting for some userland callback
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 14 Jun 2012 13:14:06 +0000 (15:14 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 24 Jul 2012 12:07:18 +0000 (14:07 +0200)
commit6a159ec62145ebec4155753860bd879bbe6bc965
tree666920e336f5e85cdf4d03ecafa165c6a65743a4
parent1efd277e6f478552b434277668c74dfc936954db
drbd: report congestion if we are waiting for some userland callback

If the drbd worker thread is synchronously waiting for some userland
callback, we don't want some casual pageout to block on us.
Have drbd_congested() report congestion in that case.

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