From: Dan Williams Date: Mon, 30 Aug 2010 07:33:33 +0000 (+1000) Subject: md: don't clear MD_CHANGE_CLEAN in md_update_sb() for external arrays X-Git-Tag: v2.6.36-rc4~82^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd52b746262c8d77e73903d6608014fb2fcdcd9d;p=pandora-kernel.git md: don't clear MD_CHANGE_CLEAN in md_update_sb() for external arrays If this bit is cleared in md_update_sb() the kernel will allow writes to the array if userspace triggers md_allow_write(), e.g. through stripe_cache_size, when mdmon is not active. When mdmon is active the array transitions to active-idle bypassing write-pending, setting up a race for mdmon to set the array clean before a write arrives. Signed-off-by: Dan Williams Signed-off-by: NeilBrown --- Reading git-diff-tree failed