From: NeilBrown Date: Thu, 7 May 2009 02:51:06 +0000 (+1000) Subject: md: remove rd%d links immediately after stopping an array. X-Git-Tag: v2.6.30-rc5~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4647292fda0833bebe45be27f04453b736981fa;p=pandora-kernel.git md: remove rd%d links immediately after stopping an array. md maintains link in sys/mdXX/md/ to identify which device has which role in the array. e.g. rd2 -> dev-sda indicates that the device with role '2' in the array is sda. These links are only present when the array is active. They are created immediately after ->run is called, and so should be removed immediately after ->stop is called. However they are currently removed a little bit later, and it is possible for ->run to be called again, thus adding these links, before they are removed. So move the removal earlier so they are consistently only present when the array is active. Signed-off-by: NeilBrown --- Reading git-diff-tree failed