md/raid1: If there is a spare and a want_replacement device, start replacement.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:57 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:57 +0000 (10:17 +1100)
commit7ef449d1ec3668acbba6af6a500d0c84636b436f
tree4a9e23c9b88f404e896ba8748bdc7bb2b18ec65c
parentc19d57980b38a5bb613a898937a1cf85f422fb9b
md/raid1: If there is a spare and a want_replacement device, start replacement.

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

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