From: NeilBrown Date: Fri, 12 Jun 2015 10:05:04 +0000 (+1000) Subject: md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync X-Git-Tag: omap-for-v4.2/fixes-rc1^2~207^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea358cd0d2c634ff1379a1392edcdf2289f31e13;p=pandora-kernel.git md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync MD_RECOVERY_DONE is normally cleared by md_check_recovery after a resync etc finished. However it is possible for raid5_start_reshape to race and start a reshape before MD_RECOVERY_DONE is cleared. This can lean to multiple reshapes running at the same time, which isn't good. To make sure it is cleared before starting a reshape, and also clear it when reaping a thread, just to be safe. Signed-off-by: NeilBrown --- Reading git-diff-tree failed