drbd: add debugging assert to make sure the protocol is clean
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 17 Dec 2010 20:06:18 +0000 (21:06 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:43:34 +0000 (11:43 +0100)
commitf735e3635430c6d1c319664d82b34376e3f9aa17
treec470f5ccd8536ad49778f842762042b75be2677e
parentc88d65e2231dbae4b7cd0ad7b2a919857a1be171
drbd: add debugging assert to make sure the protocol is clean

We expect to only receive the recently introduced "set out of sync"
packets in specific states. If we receive them in different states, that
may confuse the resync process to the point where it won't terminate, or
think it made negative progress.

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