mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
md:Add place to update ->recovery_cp.
In resyncing, recovery_cp only updated when resync aborted or completed. But in md drives,many place used it to judge.So add a place to update. Signed-off-by: Jianpeng Ma <[email protected]> Signed-off-by: NeilBrown <[email protected]>
This commit is contained in:
parent
c02c0aeb6c
commit
35d78c6696
1 changed files with 3 additions and 0 deletions
|
|
@ -7462,6 +7462,9 @@ void md_do_sync(struct md_thread *thread)
|
|||
wait_event(mddev->recovery_wait,
|
||||
atomic_read(&mddev->recovery_active) == 0);
|
||||
mddev->curr_resync_completed = j;
|
||||
if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) &&
|
||||
j > mddev->recovery_cp)
|
||||
mddev->recovery_cp = j;
|
||||
set_bit(MD_CHANGE_CLEAN, &mddev->flags);
|
||||
sysfs_notify(&mddev->kobj, NULL, "sync_completed");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue