Commit 90f5f7a
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: Hannes Reinecke <hare@suse.de>
Signed-off-by: Neil Brown <nfbrown@suse.de>1 parent 3f6bbd3 commit 90f5f7a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6405 | 6405 | | |
6406 | 6406 | | |
6407 | 6407 | | |
| 6408 | + | |
| 6409 | + | |
| 6410 | + | |
| 6411 | + | |
| 6412 | + | |
| 6413 | + | |
6408 | 6414 | | |
6409 | 6415 | | |
6410 | 6416 | | |
| |||
7892 | 7898 | | |
7893 | 7899 | | |
7894 | 7900 | | |
| 7901 | + | |
| 7902 | + | |
7895 | 7903 | | |
7896 | 7904 | | |
7897 | 7905 | | |
| |||
0 commit comments