md/raid10: If there is a spare and a want_replacement device, start replacement.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:56 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:56 +0000 (10:17 +1100)
commitb7044d41b5a09ce9082699f74c8f10e0fe59f704
tree6eccbaddb40861aeba8459cb4f0efe3c340fb936
parent56a2559bb654ae2555b2ae3b29c837615d0c45c9
md/raid10: If there is a spare and a want_replacement device, start replacement.

When attempting to add a spare to a RAID10 array, also consider
adding it as a replacement for a want_replacement device.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c