drbd: consolidate explicit drbd_md_sync into drbd_create_new_uuid
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 15 Oct 2010 11:16:53 +0000 (13:16 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 22 Oct 2010 13:36:56 +0000 (15:36 +0200)
commitaaa8e2b34c35d67abf1892cd62ea4e7565ca262c
tree19e0cb68b9481dbfa89b26b58d33071f7f2db9bf
parent6362beea8914cbd4630ccde3617d944aeca2d48f
drbd: consolidate explicit drbd_md_sync into drbd_create_new_uuid

Every code path changing the current UUID needs to get it on stable
storage anyways. Flush it to disk right there, remove the now obsolte
explicit drbd_md_sync statements in the other code paths.

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