From: NeilBrown Date: Wed, 8 May 2013 23:48:30 +0000 (+1000) Subject: md: md_stop_writes() should always freeze recovery. X-Git-Tag: v3.10-rc6~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b6204ee92adb53bfd6a77cb5679282ec3820c4b;p=pandora-kernel.git md: md_stop_writes() should always freeze recovery. __md_stop_writes() will currently sometimes freeze recovery. So any caller must be ready for that to happen, and indeed they are. However if __md_stop_writes() doesn't freeze_recovery, then a recovery could start before mddev_suspend() is called, which could be awkward. This can particularly cause problems or dm-raid. So change __md_stop_writes() to always freeze recovery. This is safe and more predicatable. Reported-by: Brassow Jonathan Tested-by: Brassow Jonathan Signed-off-by: NeilBrown --- Reading git-diff-tree failed