]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: also bump UUIDs if a diskless primary connects
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 19 Feb 2015 13:01:50 +0000 (14:01 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 25 Nov 2015 16:22:01 +0000 (09:22 -0700)
commit9c14645cef4ac59c126e8ba42cf32a1a3950dd97
treebbdb27c0da6ac182a61e0483abaedf7dd03563d9
parent1647d7b4905b7af5462600f3c1805aa3aea5158d
drbd: also bump UUIDs if a diskless primary connects

If for some reason the primary lost its disk *and* the replication link
before it is able to communicate the disk loss, probably blocked IO,
then later is able to re-establish the connection, the peer needs to
bump its UUIDs just like it does when peer only loses the disk
and is able to communicate this in time.

Otherwise, a later re-attach of the disk on the primary may start a
resync in the "wrong" direction.

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_state.c