]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MD RAID1: Further conditionalize 'fullsync'
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 24 Apr 2012 00:58:00 +0000 (10:58 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:58:00 +0000 (10:58 +1000)
commit732f0271f180d9c239382f44c971a71cf0bdfdfd
treec981d2b1de761769637b168d73aa172d611108ea
parentc722100a0399e9d3b78f904c82c872fb12f2f65f
MD RAID1: Further conditionalize 'fullsync'

A RAID1 device does not necessarily need a fullsync if the bitmap can be used instead.

Similar to commit d6b212f4b19da5301e6b6eca562e5c7a2a6e8c8d in raid5.c, if a raid1
device can be brought back (i.e. from a transient failure) it shouldn't need a
complete resync.  Provided the bitmap is not to old, it will have recorded the areas
of the disk that need recovery.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c