From: NeilBrown Date: Mon, 22 Aug 2005 20:11:08 +0000 (-0700) Subject: [PATCH] md: make sure resync gets started when array starts. X-Git-Tag: v2.6.13-rc7~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005eca5e74b222db4360f8938140eb843d283325;p=pandora-kernel.git [PATCH] md: make sure resync gets started when array starts. We weren't actually waking up the md thread after setting MD_RECOVERY_NEEDED when assembling an array, so it is possible to lose a race and not actually start resync. So add a call to md_wakeup_thread, and while we are at it, remove all the "if (mddev->thread)" guards as md_wake_thread does its own checking. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed