aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/raid5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 9b00a229015a..0a5f03d93aef 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3214,8 +3214,10 @@ static bool handle_stripe6(struct stripe_head *sh)
3214 /* now count some things */ 3214 /* now count some things */
3215 if (test_bit(R5_LOCKED, &dev->flags)) s.locked++; 3215 if (test_bit(R5_LOCKED, &dev->flags)) s.locked++;
3216 if (test_bit(R5_UPTODATE, &dev->flags)) s.uptodate++; 3216 if (test_bit(R5_UPTODATE, &dev->flags)) s.uptodate++;
3217 if (test_bit(R5_Wantcompute, &dev->flags)) 3217 if (test_bit(R5_Wantcompute, &dev->flags)) {
3218 BUG_ON(++s.compute > 2); 3218 s.compute++;
3219 BUG_ON(s.compute > 2);
3220 }
3219 3221
3220 if (test_bit(R5_Wantfill, &dev->flags)) { 3222 if (test_bit(R5_Wantfill, &dev->flags)) {
3221 s.to_fill++; 3223 s.to_fill++;