From: Philipp Reisner Date: Wed, 1 Sep 2010 13:47:15 +0000 (+0200) Subject: drbd: Removed a race that could cause unexpected execution of w_make_resync_request() X-Git-Tag: v2.6.37-rc1~167^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63106d3c6c769b6219bd04edde513b12abae3f61;p=pandora-kernel.git drbd: Removed a race that could cause unexpected execution of w_make_resync_request() The actual race happened int the drbd_start_resync() function. Where drbd_resync_finished() -> __drbd_set_state() set STOP_SYNC_TIMER and armed the timer. If the timer fired before execution reaches the mod_timer statement at the end of drbd_start_resync() the latter would cause an unexpected call to w_make_resync_request(). Removed the STOP_SYNC_TIMER bit, and base it on the connection state. The STOP_SYNC_TIMER bit probably originates probably the time before the state engine. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed