From: NeilBrown Date: Wed, 30 Apr 2008 07:52:29 +0000 (-0700) Subject: md: reinitialise more mddev fields in do_md_stop. X-Git-Tag: v2.6.26-rc1~321 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d897dbf91490f26dccef3d7056ffd09eb83a15a5;p=pandora-kernel.git md: reinitialise more mddev fields in do_md_stop. I keep finding problems where an mddev gets reused and some fields has a value from a previous usage that confuses the new usage. So clear all fields that could possible need clearing when calling do_md_stop. Also initialise the 'level' of a new array to LEVEL_NONE (which isn't 0). Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed