drbd: fix spurious protocol error
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 6 Sep 2010 10:31:37 +0000 (12:31 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:35 +0000 (18:38 +0200)
commita821cc4a9a8d9e67356f9a5cfc1206aa3cfd30f7
treed63daf31b85cefc993e6345fcd3ef3f6faac6474
parent1d53f09e170e477de67babd7a10e277479260d51
drbd: fix spurious protocol error

If we cannot satisfy a request (because our disk just broke),
we still need to drain the payload.  Or we'll get a protocol error
when interpreting the payload as DRBD packet header.

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