Skip to content
Commit 8f9e0ee3 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid1: really fix recovery looping when single good device fails.

Commit 4044ba58

 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: default avatarSebastian Färber <faerber@gmail.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent c26a44ed
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