Message ID | 1424353948-31863-15-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 222aa7521877..68a03d7f25ee 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -3204,6 +3204,11 @@ static void handle_stripe_dirtying(struct r5conf *conf, (unsigned long long)sh->sector, rcw, qread, test_bit(STRIPE_DELAYED, &sh->state)); } + + if (rcw > disks && rmw > disks && + !test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) + set_bit(STRIPE_DELAYED, &sh->state); + /* now if nothing is locked, and if we have enough data, * we can start a write request */