]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: If there is a spare and a want_replacement device, start replacement.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:53 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:53 +0000 (10:17 +1100)
commit199a4fc2c39460c8241f3d5723d9bd7f2a85f6dc
tree14bab6480ccc14a6cdf9e5ee34662897e5e2e94a
parent0dc362da8ee282ae790531bf7d873beb1efe9a6f
md/raid5: If there is a spare and a want_replacement device, start replacement.

When attempting to add a spare to a RAID[456] array, also consider
adding it as a replacement for a want_replacement device.

This requires that common md code attempt hot_add even when the array
is not formally degraded.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid5.c