linux/drivers/block/drbd
Philipp Reisner aaae506d54 drbd: Fixed a race condition between detach and start of resync
drbd_state_lock() is only there to serialize cluster wide state
changes. Testing the local disk state needs to happen while
holding the global_state_lock.

Otherwise you might see something like this (Oct 6 on kugel)
14:20:24 drbd0: conn( WFSyncUUID -> Connected ) disk( Inconsistent -> Failed )
14:20:24 drbd0: helper command: /sbin/drbdadm before-resync-target minor-0 exit code 0 (0x0)
14:20:24 drbd0: conn( Connected -> SyncTarget ) disk( Failed -> Inconsistent )

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2012-05-09 15:15:53 +02:00
..
drbd_actlog.c drbd: Hold a reference to ldev while doing meta-data IO 2012-05-09 10:31:11 +02:00
drbd_bitmap.c drbd: change some GFP_KERNEL to GFP_NOIO 2012-05-09 15:10:47 +02:00
drbd_int.h drbd: Allow new IOs while the local disk in in FAILED state 2012-05-09 15:10:34 +02:00
drbd_main.c drbd: Derive sync-UUIDs only from the bitmap-uuid if it is non-zero 2012-05-09 15:15:50 +02:00
drbd_nl.c drbd: drbd_nl_resize(): Fix missing put_ldev() on error path 2012-05-09 15:15:49 +02:00
drbd_proc.c drbd: cosmetic: fix accidental division instead of modulo when pretty printing 2012-05-09 10:01:39 +02:00
drbd_receiver.c drbd: fix "stalled" empty resync 2012-05-09 15:15:47 +02:00
drbd_req.c drbd: Implemented the disk-timeout option 2012-05-09 15:10:45 +02:00
drbd_req.h drbd: Immediately allow completion of IOs, that wait for IO completions on a failed disk 2012-05-09 10:16:04 +02:00
drbd_strings.c drbd: Rename enum drbd_state_ret_codes to enum drbd_state_rv 2011-03-10 11:36:18 +01:00
drbd_vli.h Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_worker.c drbd: Fixed a race condition between detach and start of resync 2012-05-09 15:15:53 +02:00
drbd_wrappers.h drbd: Get rid of unnecessary macros (2) 2011-03-10 11:36:15 +01:00
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00