drbd: Be more careful with SyncSource -> Ahead transitions
authorPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 23 Dec 2010 13:24:33 +0000 (14:24 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:45:26 +0000 (11:45 +0100)
commitda0a78161d2b2da4819a1f05a38bb1dcbe02d951
tree2228b9b03e645d5339b812c6330b44756675b36c
parentd612d309e4c8401ad94c531678b59c4a8b7c41ce
drbd: Be more careful with SyncSource -> Ahead transitions

We may not get from SyncSource to Ahead if we have sent some
P_RS_DATA_REPLY packets to the peer and are waiting for
P_WRITE_ACK.

Again, this is not relevant for proper tuned systems, but makes
sure that the not-tuned system does not get diverging bitmaps.

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