Commit 87aa6300 authored by Gabriele A. Trombetti's avatar Gabriele A. Trombetti Committed by NeilBrown

md/raid6: Fix raid-6 read-error correction in degraded state

Fix: Raid-6 was not trying to correct a read-error when in
singly-degraded state and was instead dropping one more device, going to
doubly-degraded state. This patch fixes this behaviour.
Tested-by: default avatarJanos Haar <>
Signed-off-by: default avatarGabriele A. Trombetti <>
Reported-by: default avatarJanos Haar <>
Signed-off-by: default avatarNeilBrown <>
parent 722154e4
......@@ -1527,7 +1527,7 @@ static void raid5_end_read_request(struct bio * bi, int error)
clear_bit(R5_UPTODATE, &sh->dev[i].flags);
if (conf->mddev->degraded)
if (conf->mddev->degraded >= conf->max_degraded)
"raid5:%s: read error not correctable "
"(sector %llu on %s).\n",
Markdown is supported
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