drbd: move set_disk_ro() to after we persisted the new role
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 5 Feb 2014 05:28:08 +0000 (06:28 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:34:53 +0000 (18:34 +0200)
This probably does not have any real life impact,
but we should first persist any potentially new UUID
and other meta data flags, as well as our new role,
before we allow/disallow write access.

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

Simple merge