drbd: Only print sanitize state's warnings, if the state change happens
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 29 Jun 2011 08:49:13 +0000 (10:49 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 08:08:22 +0000 (10:08 +0200)
commit77e8fdfc188f0490754f703f80d2853c69052c12
treea56b084ec28ab6d376b0da3bcd4684f29f00cacd
parent07667347c89e5d971243a411ca4ed83ad14f9f9e
drbd: Only print sanitize state's warnings, if the state change happens

The reason for this change is that, with when doing
'drbdadm invalidate' on a disconnected resource caused
an "implicitly set pdsk from UpToDate to DUnknown" message,
which was missleading.

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