Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit debebae7 authored by NeilBrown's avatar NeilBrown Committed by Sasha Levin
Browse files

md: sync sync_completed has correct value as recovery finishes.



[ Upstream commit 5ed1df2eacc0ba92c8c7e2499c97594b5ef928a8 ]

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: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 98d446ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment