drbd: Fix the way the STATE_SENT bit is cleared
authorPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 28 Aug 2012 09:33:35 +0000 (11:33 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:08:23 +0000 (14:08 +0100)
commit797020117761eee21ef284cea90c51c690fca169
treef631b73335e5a2211525a692ac57901d4c48b126
parent07fc96197aec46f7ad4f08a4b2a1ea426112e24d
drbd: Fix the way the STATE_SENT bit is cleared

With merging the commit
'drbd: Delay/reject other state changes while establishing a connection'
the condition check for clearing the flag was wrong.

Move the bit clearing to the __drbd_set_state() function
in order to have it already cleared for the other parts of
the function. I.e. clearing the susp_fen in the after_state_ch() function.

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