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)
commitc2ba686f353972cc89a006ffb6bab7ba1822271e
tree666920e336f5e85cdf4d03ecafa165c6a65743a4
parent383606e0dea6a380097dbcb0c319b09ca372f36b
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