drbd: Fixed an issue with AHEAD -> SYNC_SOURCE transitions
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 22 Dec 2010 11:48:31 +0000 (12:48 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:45:23 +0000 (11:45 +0100)
Create a new barrier when leaving the AHEAD mode.

  Otherwise we trigger the assertion in req_mod(, barrier_acked)
  D_ASSERT(req->rq_state & RQ_NET_SENT);

The new barrier is created by recycling the newest existing one.

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

Simple merge