From: Neil Brown Date: Fri, 27 Jun 2008 22:31:41 +0000 (+1000) Subject: Make sure all changes to md/sync_action are notified. X-Git-Tag: v2.6.27-rc1~957^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a23c211e4587859d5bf61ac4962d76e593fb02;p=pandora-kernel.git Make sure all changes to md/sync_action are notified. When the 'resync' thread starts or stops, when we explicitly set sync_action, or when we determine that there is definitely nothing to do, we notify sync_action. To stop "sync_action" from occasionally showing the wrong value, we introduce a new flags - MD_RECOVERY_RECOVER - to say that a recovery is probably needed or happening, and we make sure that we set MD_RECOVERY_RUNNING before clearing MD_RECOVERY_NEEDED. Signed-off-by: Neil Brown --- Reading git-diff-tree failed