From: NeilBrown Date: Wed, 11 May 2011 04:53:17 +0000 (+1000) Subject: md/raid10: some tidying up in fix_read_error X-Git-Tag: v3.0-rc1~358^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c4e06ff2b6a4c09638551dfde76f37f9fca5c0c;p=pandora-kernel.git md/raid10: some tidying up in fix_read_error Currently the rdev on which a read error happened could be removed before we perform the fix_error handling. This requires extra tests for NULL. So delay the rdev_dec_pending call until after the call to fix_read_error so that we can be sure that the rdev still exists. This allows an 'if' clause to be removed so the body gets re-indented back one level. Signed-off-by: NeilBrown --- Reading git-diff-tree failed