]> 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, 27 Mar 2013 06:15:09 +0000 (17:15 +1100)
commitbe7ef9fa4c2fe3e7b37f0bb4503e3a898ebac331
tree3d9f35550001dc5d17893480c20f3041260c96a7
parent8f4bf70e5e4a21c3b7f71f0f40a58951d82606cd
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