]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: fix "stalled" empty resync
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 26 Sep 2011 13:24:56 +0000 (15:24 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 13:15:47 +0000 (15:15 +0200)
commit0f98f2c2c186aa6b4001ea65dd72392703ce4b60
tree3747089f12567b97417121f01a7a0da19852da39
parentd1f2c313aee10ff804b48ca71a552c1d040b1a62
drbd: fix "stalled" empty resync

With sync-after dependencies, given "lucky" timing of pause/unpause
events, and the end of an empty (0 bits set) resync was sometimes not
detected on the SyncTarget, leading to a "stalled" SyncSource state.

Fixed this by expecting not only "Inconsistent -> UpToDate" but also
"Consistent -> UpToDate" transitions for the peer disk state
to end a resync.

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