drbd: Create new current UUID as late as possible
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 May 2010 14:10:43 +0000 (16:10 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 18 May 2010 00:03:49 +0000 (02:03 +0200)
commit0c3f34516e8c5a1a0ba3585a7777d32bbbdf4ecb
treebb61a6235de8a6a87ebc4d4f39630d17e3c9a3de
parent9a25a04c8079725c1b1ab756694a8e0757844b40
drbd: Create new current UUID as late as possible

The choice was to either delay creation of the new UUID until
IO got thawed or to delay it until the first IO request.

Both are correct, the later is more friendly to users of
dual-primary setups, that actually only write on one side.

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