]> git.baikalelectronics.ru Git - kernel.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)
commitf61afe1ad9605f49364223ab2598a8254ac071db
tree72950bf4f5d6e64e8fc7628940f21fabf1332700
parent033944c6b29e851bddba360a0c581a03e98218cf
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