diff options
author | NeilBrown <neilb@suse.de> | 2015-05-22 00:03:10 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-05-27 21:48:59 -0400 |
commit | 626f2092c85ac847bb80b3257eb6a565dec32278 (patch) | |
tree | b46a0b62dfe12db1104f6a66cc5fe683e7cb6dbf /drivers/md | |
parent | 787b76fa37159050f6d26aebfa6210009baed93b (diff) |
md/raid5: break stripe-batches when the array has failed.
Once the array has too much failure, we need to break
stripe-batches up so they can all be dealt with.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 3254504b1080..553d54b87052 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -4337,6 +4337,7 @@ static void handle_stripe(struct stripe_head *sh) | |||
4337 | if (s.failed > conf->max_degraded) { | 4337 | if (s.failed > conf->max_degraded) { |
4338 | sh->check_state = 0; | 4338 | sh->check_state = 0; |
4339 | sh->reconstruct_state = 0; | 4339 | sh->reconstruct_state = 0; |
4340 | break_stripe_batch_list(sh, 0); | ||
4340 | if (s.to_read+s.to_write+s.written) | 4341 | if (s.to_read+s.to_write+s.written) |
4341 | handle_failed_stripe(conf, sh, &s, disks, &s.return_bi); | 4342 | handle_failed_stripe(conf, sh, &s, disks, &s.return_bi); |
4342 | if (s.syncing + s.replacing) | 4343 | if (s.syncing + s.replacing) |