From: Hannes Reinecke Date: Tue, 2 Apr 2013 06:38:55 +0000 (+0200) Subject: md: Wait for md_check_recovery before attempting device removal. X-Git-Tag: v3.11-rc1~91^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90f5f7ad4f38d67626b0c220a0ac390603e0bded;p=pandora-kernel.git md: Wait for md_check_recovery before attempting device removal. When a device has failed, it needs to be removed from the personality module before it can be removed from the array as a whole. The first step is performed by md_check_recovery() which is called from the raid management thread. So when a HOT_REMOVE ioctl arrives, wait briefly for md_check_recovery to have run. This increases the chance that the ioctl will succeed. Signed-off-by: Hannes Reinecke Signed-off-by: Neil Brown --- Reading git-diff-tree failed