drbd: Improvements in sanitize_state()
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 17 Nov 2010 15:54:36 +0000 (16:54 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:35:04 +0000 (11:35 +0100)
commitab17b68f4579b460753a416b0afc4446381d876f
tree78c88ce883d2c1e721171611f0899b159b24f290
parent22afd7ee94c1c5857323b677267ba8bace09bcef
drbd: Improvements in sanitize_state()

The relevant change is that the state change to C_FW_BITMAP_S should
implicitly change pdsk to C_CONSISTENT. (Think of it as C_OUTDATED, only
without the guarantee that the peer has the outdated written to its
meta data)

At that opportunity I restructured the switch statement so that it
gets evaluated every time. (Has declarative character)

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