md/raid10: avoid fullsync when not necessary.
authorNeilBrown <neilb@suse.de>
Tue, 14 Jan 2014 05:30:10 +0000 (16:30 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 14 Jan 2014 05:44:21 +0000 (16:44 +1100)
commit0b59bb6422e43ad0534073e2cbc4d0f52720da88
tree42091a7d809216ef68b5f41e5a90d6a039538932
parent7eb418851f3278de67126ea0c427641ab4792c57
md/raid10: avoid fullsync when not necessary.

This is the raid10 equivalent of

commit 4f0a5e012cf41321d611e7cad63e1017d143d138
    MD RAID1: Further conditionalize 'fullsync'

If a device in a newly assembled array is not fully recovered we
currently do a fully resync by don't need to.

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