Repository navigation
Commit 45eaf45
committed
md: Always set RECOVERY_NEEDED when clearing RECOVERY_FROZEN
md_check_recovery will skip any recovery and also clear
MD_RECOVERY_NEEDED if MD_RECOVERY_FROZEN is set.
So when we clear _FROZEN, we must set _NEEDED and ensure that
md_check_recovery gets run.
Otherwise we could miss out on something that is needed.
In particular, this can make it impossible to remove a
failed device from an array is the 'recovery-needed' processing
didn't happen.
Suitable for stable kernels since 3.13.
Cc: stable@vger.kernel.org (3.13+)
Reported-and-tested-by: Joe Lawrence <joe.lawrence@stratus.com>
Fixes: 30b8feb
Signed-off-by: NeilBrown <neilb@suse.de>1 parent 206c5f6 commit 45eaf45
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5121 | 5121 | | |
5122 | 5122 | | |
5123 | 5123 | | |
| 5124 | + | |
5124 | 5125 | | |
5125 | 5126 | | |
5126 | 5127 | | |
| |||
5135 | 5136 | | |
5136 | 5137 | | |
5137 | 5138 | | |
| 5139 | + | |
| 5140 | + | |
5138 | 5141 | | |
5139 | 5142 | | |
5140 | 5143 | | |
| |||
5178 | 5181 | | |
5179 | 5182 | | |
5180 | 5183 | | |
| 5184 | + | |
5181 | 5185 | | |
5182 | 5186 | | |
5183 | 5187 | | |
| |||
0 commit comments