drbd: Call drbd_md_sync() explicitly after a state change on the connection
authorPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 28 Aug 2012 14:48:03 +0000 (16:48 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:11:08 +0000 (14:11 +0100)
commit19fffd7b0303e8843aa2decfd43fa57c9d511409
tree19ac111fafeec46eac2b0e8cee4f41f4327a1129
parentd76440181d0e05826f228189b74b4dbf64b68981
drbd: Call drbd_md_sync() explicitly after a state change on the connection

Without this, the meta-data gets updates after 5 seconds by the
md_sync_timer. Better to do it immeditaly after a state change.

If the asender detects a network failure, it may take a bit until
the worker processes the according after-conn-state-change work item.

  The worker might be blocked in sending something, i.e. it
  takes until it gets into its timeout. That is 6 seconds by
  default which is longer than the 5 seconds of the md_sync_timer.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_state.c