diff options
author | 2014-10-29 08:49:50 +1100 | |
---|---|---|
committer | 2014-11-17 09:17:46 +1100 | |
commit | 45eaf45dfa4850df16bc2e8e7903d89021137f40 (patch) | |
tree | 623ac0e21c0f21c851c4dcffe8b317d41aafdb98 /scripts/gdb/linux/utils.py | |
parent | Linux 3.18-rc4 (diff) | |
download | wireguard-linux-45eaf45dfa4850df16bc2e8e7903d89021137f40.tar.xz wireguard-linux-45eaf45dfa4850df16bc2e8e7903d89021137f40.zip |
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: 30b8feb730f9b9b3c5de02580897da03f59b6b16
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions