diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 8a6f101d3225..46132fca3469 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -2717,10 +2717,11 @@ static void handle_stripe5(struct stripe_head *sh) | |||
2717 | if (sh->reconstruct_state == reconstruct_state_result) { | 2717 | if (sh->reconstruct_state == reconstruct_state_result) { |
2718 | sh->reconstruct_state = reconstruct_state_idle; | 2718 | sh->reconstruct_state = reconstruct_state_idle; |
2719 | clear_bit(STRIPE_EXPANDING, &sh->state); | 2719 | clear_bit(STRIPE_EXPANDING, &sh->state); |
2720 | for (i = conf->raid_disks; i--; ) | 2720 | for (i = conf->raid_disks; i--; ) { |
2721 | set_bit(R5_Wantwrite, &sh->dev[i].flags); | 2721 | set_bit(R5_Wantwrite, &sh->dev[i].flags); |
2722 | set_bit(R5_LOCKED, &dev->flags); | 2722 | set_bit(R5_LOCKED, &sh->dev[i].flags); |
2723 | s.locked++; | 2723 | s.locked++; |
2724 | } | ||
2724 | } | 2725 | } |
2725 | 2726 | ||
2726 | if (s.expanded && test_bit(STRIPE_EXPANDING, &sh->state) && | 2727 | if (s.expanded && test_bit(STRIPE_EXPANDING, &sh->state) && |