From: Philipp Reisner Date: Wed, 2 Jun 2010 12:31:29 +0000 (+0200) Subject: drbd: Fixed a race between disk-attach and unexpected state changes X-Git-Tag: v2.6.35-rc4~43^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc66c74de6f4238020db3e2041d4aca5c5b3e9bc;p=pandora-kernel.git drbd: Fixed a race between disk-attach and unexpected state changes This was a very hard to trigger race condition. If we got a state packet from the peer, after drbd_nl_disk() has already changed the disk state to D_NEGOTIATING but after_state_ch() was not yet run by the worker, then receive_state() might called drbd_sync_handshake(), which in turn crashed when accessing p_uuid. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed