drbd: report congestion if we are waiting for some userland callback
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 30 Jul 2012 07:08:25 +0000 (09:08 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:39 +0000 (16:58 +0100)
commit6f3465ed82b10922effe364676103cbd4f2bcd81
tree9dc3f63d3faffecd49cac56a3affc55b1df08ae8
parent0c849666016cbf541c1030eec55f5f8dd1fba513
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