]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commit617049aa7d753e8c821ac77126ab90e9f1b66d6d
tree1cabbc19e2efa054bf585d92f42c0bf7bf0c01b5
parent071942727824bab03b1a3f6b6eeb5b269697b333
drbd: Fixed an issue with AHEAD -> SYNC_SOURCE transitions

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