]> git.karo-electronics.de Git - linux-beck.git/commit
drbd: finish resync on sync source only by notification from sync target
authorLars Ellenberg <lars@linbit.com>
Mon, 13 Jun 2016 22:26:24 +0000 (00:26 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Jun 2016 03:43:05 +0000 (21:43 -0600)
commit5052fee2c7302390b0a719a0613813484006757d
tree72950bf4f5d6e64e8fc7628940f21fabf1332700
parent505675f96cf0f169647a18c3dda1f373eca957b1
drbd: finish resync on sync source only by notification from sync target

If the replication link breaks exactly during "resync finished" detection,
finishing too early on the sync source could again lead to UUIDs rotated
too fast, and potentially a spurious full resync on next handshake.

Always wait for explicit resync finished state change notification from
the sync target.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_int.h