]> 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)
commit4a63e510ad216d300591f77e631395e75e967462
tree72950bf4f5d6e64e8fc7628940f21fabf1332700
parent7d119b2287aace43cdde6cb1be2c751a788df570
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