md/raid1: handle activation of replacement device when recovery completes.
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)
commit8c7a2c2bcfaf0ee29c74437a4814d1aa780d6a26
tree74093a74ea43965f04502bc5d71b6976a74c7305
parentb014f14c81bc5db4e40e2a4db10998fd79c1c64c
md/raid1: handle activation of replacement device when recovery completes.

When recovery completes ->spare_active is called.
This checks if the replacement is ready and if so it fails
the original.

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