From: Jonathan Brassow Date: Wed, 8 Jun 2011 23:00:28 +0000 (-0500) Subject: MD: raid5 do not set fullsync X-Git-Tag: v3.0-rc4~98^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6b212f4b19da5301e6b6eca562e5c7a2a6e8c8d;p=pandora-kernel.git MD: raid5 do not set fullsync Add check to determine if a device needs full resync or if partial resync will do RAID 5 was assuming that if a device was not In_sync, it must undergo a full resync. We add a check to see if 'saved_raid_disk' is the same as 'raid_disk'. If it is, we can safely skip the full resync and rely on the bitmap for partial recovery instead. This is the legitimate purpose of 'saved_raid_disk', from md.h: int saved_raid_disk; /* role that device used to have in the * array and could again if we did a partial * resync from the bitmap */ Signed-off-by: Jonathan Brassow Signed-off-by: NeilBrown --- Reading git-diff-tree failed