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

md: Be more careful about clearing flags bit in ->recovery



Setting ->recovery to 0 is generally not a good idea as it could clear
bits that shouldn't be cleared.  In particular, MD_RECOVERY_FROZEN
should only be cleared on explicit request from user-space.

So when we need to clear things, just clear the bits that need
clearing.

As there are a few different places which reap a resync process - and
some do an incomplte job - factor out the code for doing the from
md_check_recovery and call that function instead of open coding part
of it.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Reported-by: default avatarJonathan Brassow <jbrassow@redhat.com>
parent defad61a
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