md: support re-add of recovering devices.
authorNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:59:06 +0000 (15:59 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:59:06 +0000 (15:59 +1000)
We currently only allow a device to be re-added if it appear to be
in-sync.  This is overly restrictive as it may be desirable to re-add
a device that is in the middle of recovery.

So remove the test for "InSync" - the test on rdev->raid_disk is
sufficient to ensure that the re-add will succeed.

Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Tested-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>

No differences found