]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: Allow skipping recovery when clean arrays are assembled
authorMartin Wilck <mwilck@arcor.de>
Tue, 19 Mar 2013 18:35:33 +0000 (19:35 +0100)
committerNeilBrown <neilb@suse.de>
Wed, 20 Mar 2013 02:22:53 +0000 (13:22 +1100)
commit864e8cbba0b4371558fbdc1f11cb173c91d6a75a
treec825fd2a1d2f2cdddcc2d185a1656c3cb28867da
parent7d69ae42769a84d567e980f62ab701bdb14169c7
md/raid10: Allow skipping recovery when clean arrays are assembled

When an array is assembled incrementally with mdadm -I -R
and the array switches to "active" mode, md starts a recovery.

If the array was clean, the "fullsync" flag will be 0. Skip
the full recovery in this case, as RAID1 does (the code was
actually copied from the sync_request() method of RAID1).

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