From: NeilBrown Date: Wed, 17 Oct 2007 06:30:53 +0000 (-0700) Subject: md: 'sync_action' in sysfs returns wrong value for readonly arrays X-Git-Tag: v2.6.24-rc1~558 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b12ab6d33f413aabb623197eeecaad5c216e6ae;p=pandora-kernel.git md: 'sync_action' in sysfs returns wrong value for readonly arrays When an array is started read-only, MD_RECOVERY_NEEDED can be set but no recovery will be running. This causes 'sync_action' to report the wrong value. We could remove the test for MD_RECOVERY_NEEDED, but doing so would leave a small gap after requesting a sync action, where 'sync_action' would still report the old value. So make sure that for a read-only array, 'sync_action' always returns 'idle'. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed