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

md: HOT_DISK_REMOVE shouldn't make a read-auto device active.



If a fail device or a spare is removed from an array, there is
not need to make the array 'active'.  If/when the array does become
active for some other reason the metadata will be update to reflect
the removal.
If that never happens and the array is stopped while still read-auto,
then there is no loss in forgetting the that the device had 'failed'.

A read-only array will leave failed devices attached to
the array personality, so we need to explicitly call
remove_and_add_spares() to free it (clearing Blocked just
like we do in store_slot()).

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 746d3207
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