From: Lars Ellenberg Date: Tue, 19 Jun 2012 08:27:58 +0000 (+0200) Subject: drbd: flush drbd work queue before invalidate/invalidate remote X-Git-Tag: v3.6-rc1~6^2~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee1fb93f390f7a7231abec4e34e6ab20abeed45;p=pandora-kernel.git 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 Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed