linux/drivers/block/drbd
Lars Ellenberg f479ea0661 drbd: send intermediate state change results to the peer
DRBD state changes schedule after_state_ch() actions to a worker thread,
which decides on the old and new states of that change, whether to send
an informational state update packet (P_STATE) to the peer.
If it decides to drbd_send_state(), it would however always send the
_curent_ state, which, if a second state change happens before the
after_state_ch() of the first ran, may "fast-forward" the peer's view
about this node.  In most cases that is harmless, but sometimes this can
confuse DRBD, for example into not actually starting a necessary resync
if you do a very tight detach/attach loop on a Connected Secondary.

Fix this by always sending the "new" state of the respective state
transition which scheduled this after_state_ch() work.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2012-05-09 15:15:56 +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: send intermediate state change results to the peer 2012-05-09 15:15:56 +02:00
drbd_main.c drbd: send intermediate state change results to the peer 2012-05-09 15:15:56 +02:00
drbd_nl.c drbd: send intermediate state change results to the peer 2012-05-09 15:15:56 +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: send intermediate state change results to the peer 2012-05-09 15:15:56 +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