drbd: rate limit an error message
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 19 Oct 2010 10:08:13 +0000 (12:08 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 22 Oct 2010 13:53:10 +0000 (15:53 +0200)
commitfb2c7a10eec051317ff091b2cb2d73c5ecd98c19
tree71780ba6a3d19b9a79e076d99b2a4e85e8e04db9
parentbc571b8cb930ea78207851dd38b5a435fcb8891c
drbd: rate limit an error message

If we don't rate limit it, and you happen to log err level messages via
serial console, an IO error on a disconnected Primary may cause serious
unresponsiveness.

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