md: do not count blocked devices as spares
authorDan Williams <dan.j.williams@intel.com>
Tue, 29 Jul 2008 06:28:06 +0000 (23:28 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 29 Jul 2008 00:52:44 +0000 (17:52 -0700)
commite542713529e323ff09d7aeb5806cf29f6f160f53
tree751dffc2043342eb6f76b0c37a07a698462b5516
parentdf10cfbc4d7ab93260d997df754219d390d62a9d
md: do not count blocked devices as spares

remove_and_add_spares() assumes that failed devices have been hot-removed
from the array.  Removal is skipped in the 'blocked' case so do not count a
device in this state as 'spare'.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/md.c