Skip to content
Commit ea358cd0 authored by NeilBrown's avatar NeilBrown
Browse files

md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync



MD_RECOVERY_DONE is normally cleared by md_check_recovery after a
resync etc finished.  However it is possible for raid5_start_reshape
to race and start a reshape before MD_RECOVERY_DONE is cleared.  This
can lean to multiple reshapes running at the same time, which isn't
good.

To make sure it is cleared before starting a reshape, and also clear
it when reaping a thread, just to be safe.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 8e8e2518
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment