From: NeilBrown Date: Thu, 13 Jan 2011 22:14:33 +0000 (+1100) Subject: md: Be more careful about clearing flags bit in ->recovery X-Git-Tag: v2.6.38-rc1~222^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ebc0be7fff4146e87b4078f054977b72998abd3;p=pandora-kernel.git md: Be more careful about clearing flags bit in ->recovery Setting ->recovery to 0 is generally not a good idea as it could clear bits that shouldn't be cleared. In particular, MD_RECOVERY_FROZEN should only be cleared on explicit request from user-space. So when we need to clear things, just clear the bits that need clearing. As there are a few different places which reap a resync process - and some do an incomplte job - factor out the code for doing the from md_check_recovery and call that function instead of open coding part of it. Signed-off-by: NeilBrown Reported-by: Jonathan Brassow --- Reading git-diff-tree failed