From: NeilBrown Date: Fri, 26 Jan 2007 08:57:02 +0000 (-0800) Subject: [PATCH] md: make sure the events count in an md array never returns to zero X-Git-Tag: v2.6.20-rc7~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1031be7a5fafd3a858dfaabb74d98f9ca20744a8;p=pandora-kernel.git [PATCH] md: make sure the events count in an md array never returns to zero Now that we sometimes step the array events count backwards (when transitioning dirty->clean where nothing else interesting has happened - so that we don't need to write to spares all the time), it is possible for the event count to return to zero, which is potentially confusing and triggers and MD_BUG. We could possibly remove the MD_BUG, but is just as easy, and probably safer, to make sure we never return to zero. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed