From: NeilBrown Date: Tue, 3 Jul 2012 02:13:29 +0000 (+1000) Subject: md/raid5: fix refcount problem when blocked_rdev is set. X-Git-Tag: v3.5-rc6~24^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f066c632fcfd2a33f2eb7077c15c630e9f5ea5b;p=pandora-kernel.git md/raid5: fix refcount problem when blocked_rdev is set. commit 43220aa0f22cd3ce5b30246d50ccd696d119edea md/raid5: fix a hang on device failure. fixed a hang, but introduced a refcounting in-balance so that if the presence of bad-blocks ever caused an rdev to be 'blocked' we would increment the refcount on the rdev and never decrement it. So added the needed rdev_dec_pending when md_wait_for_blocked_rdev is not called. Reported-by: majianpeng Signed-off-by: NeilBrown --- Reading git-diff-tree failed