diff options
author | NeilBrown <neilb@suse.de> | 2010-11-24 06:39:46 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-24 06:39:46 +0100 |
commit | 8f9e0ee38f75d4740daa9e42c8af628d33d19a02 (patch) | |
tree | 4e1b3fe1460cd0c71258cfb2f68bb28cf71eeca4 /drivers/edac/amd64_edac_dbg.c | |
parent | md: fix return value of rdev_size_change() (diff) | |
download | linux-8f9e0ee38f75d4740daa9e42c8af628d33d19a02.tar.xz linux-8f9e0ee38f75d4740daa9e42c8af628d33d19a02.zip |
md/raid1: really fix recovery looping when single good device fails.
Commit 4044ba58dd15cb01797c4fd034f39ef4a75f7cc3 supposedly fixed a
problem where if a raid1 with just one good device gets a read-error
during recovery, the recovery would abort and immediately restart in
an infinite loop.
However it depended on raid1_remove_disk removing the spare device
from the array. But that does not happen in this case. So add a test
so that in the 'recovery_disabled' case, the device will be removed.
This suitable for any kernel since 2.6.29 which is when
recovery_disabled was introduced.
Cc: stable@kernel.org
Reported-by: Sebastian Färber <faerber@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/edac/amd64_edac_dbg.c')
0 files changed, 0 insertions, 0 deletions