linux-stable-rt/drivers/block/drbd
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
..
Kconfig
Makefile
drbd_actlog.c
drbd_bitmap.c
drbd_int.h drbd: use drbd specific ratelimit instead of global printk_ratelimit 2010-06-01 11:12:27 +02:00
drbd_main.c drbd: Fixed a race between disk-attach and unexpected state changes 2010-06-14 12:19:41 +02:00
drbd_nl.c drbd: Fixed a race between disk-attach and unexpected state changes 2010-06-14 12:19:41 +02:00
drbd_proc.c
drbd_receiver.c drbd: removed duplicated #includes 2010-06-01 11:12:27 +02:00
drbd_req.c drbd: Reduce verbosity 2010-06-01 11:12:27 +02:00
drbd_req.h drbd: fix hang on local read errors while disconnected 2010-06-01 11:12:27 +02:00
drbd_strings.c
drbd_vli.h
drbd_worker.c drbd: Reduce verbosity 2010-06-01 11:12:27 +02:00
drbd_wrappers.h