summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_wrappers.h
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2012-07-30 09:11:38 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:58:41 +0100
commit970fbde1f1ebae0c85bbaed3de83684a58d60fad (patch)
treeb0b61dd455f63fd7cbad4d26bbc6f6a50cd7c9dc /drivers/block/drbd/drbd_wrappers.h
parent6f1a656325ea01638de44f8d40bb77c73181b275 (diff)
downloadblackbird-obmc-linux-970fbde1f1ebae0c85bbaed3de83684a58d60fad.tar.gz
blackbird-obmc-linux-970fbde1f1ebae0c85bbaed3de83684a58d60fad.zip
drbd: flush drbd work queue before invalidate/invalidate remote
If you do back to back wait-sync/invalidate on a Primary in a tight loop, during application IO load, you could trigger a race: kernel: block drbd6: FIXME going to queue 'set_n_write from StartingSync' but 'write from resync_finished' still pending? Fix this by changing the order of the drbd_queue_work() and the wake_up() in dec_ap_pending(), and adding the additional drbd_flush_workqueue() before requesting the full sync. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_wrappers.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud