From: Philipp Reisner Date: Fri, 14 Jan 2011 15:03:11 +0000 (+0100) Subject: drbd: Work on the Ahead -> SyncSource transition X-Git-Tag: v2.6.39-rc1~37^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370a43e7982dd497822097e0ae6022947ac2e7d4;p=pandora-kernel.git drbd: Work on the Ahead -> SyncSource transition The test if rs_pending_cnt == 0 was too weak. Using Test for unacked_cnt == 0 instead. Moved that into the worker. Since unacked_cnt gets already increased when an P_RS_DATA_REQ comes in. Also using a timer to make Ahead -> SyncSource -> Ahead cycles slower... Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed