Skip to content
Commit 90f5f7ad authored by Hannes Reinecke's avatar Hannes Reinecke Committed by NeilBrown
Browse files

md: Wait for md_check_recovery before attempting device removal.



When a device has failed, it needs to be removed from the personality
module before it can be removed from the array as a whole.
The first step is performed by md_check_recovery() which is called
from the raid management thread.

So when a HOT_REMOVE ioctl arrives, wait briefly for md_check_recovery
to have run.  This increases the chance that the ioctl will succeed.

Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarNeil Brown <nfbrown@suse.de>
parent 3f6bbd3f
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