drbd: Introduce and use drbd_recv_all_warn()
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 24 Mar 2011 02:28:04 +0000 (03:28 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:44:50 +0000 (16:44 +0100)
commita5c31904350182b0138f0bd1cec9bc2c4296f71f
tree195b8a392b89596c174da70b84a36b2aaf594486
parent309a834896a4ab7dc762b7f8bb3ed1dd8153162c
drbd: Introduce and use drbd_recv_all_warn()

The pattern of receiving a fixed number of bytes and warning if a short
packet is received and the receiver has not actively been interruped is
repeated many times; clean that up.

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