From: NeilBrown Date: Fri, 24 Jul 2015 03:27:08 +0000 (+1000) Subject: md: sync sync_completed has correct value as recovery finishes. X-Git-Tag: omap-for-v4.3/fixes-rc1~84^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ed1df2eacc0ba92c8c7e2499c97594b5ef928a8;p=pandora-kernel.git md: sync sync_completed has correct value as recovery finishes. There can be a small window between the moment that recovery actually writes the last block and the time when various sysfs and /proc/mdstat attributes report that it has finished. During this time, 'sync_completed' can have the wrong value. This can confuse monitoring software. So: - don't set curr_resync_completed beyond the end of the devices, - set it correctly when resync/recovery has completed. Signed-off-by: NeilBrown --- Reading git-diff-tree failed