Philipp Reisner dc66c74de6 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 <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2010-06-14 12:19:41 +02:00
..
2010-06-01 11:09:20 +02:00
2010-06-01 12:17:48 +02:00
2010-02-22 13:44:45 +01:00
2010-05-11 09:59:26 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2010-05-11 09:02:55 +02:00
2010-05-21 18:31:21 -04:00
2009-10-01 21:17:49 +02:00
2005-04-16 15:20:36 -07:00
2009-03-26 21:15:27 +01:00
2008-10-21 07:48:11 -04:00