Message ID | 1412112566-23450-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 48cdec8..fd900ef 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -3779,6 +3779,8 @@ static void handle_stripe(struct stripe_head *sh) set_bit(R5_Wantwrite, &dev->flags); if (prexor) continue; + if (s.failed > 1) + continue; if (!test_bit(R5_Insync, &dev->flags) || ((i == sh->pd_idx || i == sh->qd_idx) && s.failed == 0))