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

md: clear In_sync bit on devices added to an active array.



When we add a device to an active array it can be meaningful to set
the 'insync' flag.  This indicates that the device is in-sync with the
array except for locations recorded in the bitmap.
A bitmap-based recovery can then bring it completely in-sync.

Internally we move that flag to 'saved_raid_disk' but forgot to clear
In_sync like we do in add_new_disk.

So clear In_sync after moving its value to saved_raid_disk.

Reported-by: default avatarAndrei Warkentin <andreiw@vmware.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 34db0cd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment