drbd: Fixed logging of old connection state
authorPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 25 Mar 2011 13:31:11 +0000 (14:31 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:44:57 +0000 (16:44 +0100)
commit88ef594ed7367a76e53f4a33b3d866f4dfb1d4ff
tree1d70714d2d69887899d150bac5c48f80028b986c
parentbd0c824a9db54bfbf5a26a5bb9b604d65c25b904
drbd: Fixed logging of old connection state

During a disconnect the oc variable in _conn_request_state()
could become outdated. Determin the common old state after
sleeping.
While at it, I implemented that for all parts of the state

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