From: Lars Ellenberg Date: Mon, 2 May 2011 08:45:05 +0000 (+0200) Subject: drbd: fix race when forcefully disconnecting X-Git-Tag: v3.8-rc1~78^2~18^2~240 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3dfa40a67c354a5886c5ae53a9c5d3a2c6fd06e;p=pandora-kernel.git drbd: fix race when forcefully disconnecting If a forced disconnect hits a restarting receiver right after it passed its final "if (C_DISCONNECTING)" test in drbdd_init(), but before it was actually restarted by drbd_thread_setup, we could be left with a connection stuck in C_DISCONNECTING, never reaching C_STANDALONE, which would be necessary to take it down or reconfigure it. Move the last cleanup into w_after_conn_state_ch(), and do an additional state change request in conn_try_disconnect(), just in case. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed