Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75302
b: refs/heads/master
c: 0f94e87
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Linus Torvalds committed Jan 9, 2008
1 parent 9069650 commit 67fc3bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b7741b3325d0d94c88b2ad46657a536890aaa2f
refs/heads/master: 0f94e87cdeaaac9f0f9a28a5dd2a5070b87cd3e8
6 changes: 4 additions & 2 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -2865,7 +2865,8 @@ static void handle_stripe5(struct stripe_head *sh)
md_done_sync(conf->mddev, STRIPE_SECTORS, 1);
}

if (s.expanding && s.locked == 0)
if (s.expanding && s.locked == 0 &&
!test_bit(STRIPE_OP_COMPUTE_BLK, &sh->ops.pending))
handle_stripe_expansion(conf, sh, NULL);

if (sh->ops.count)
Expand Down Expand Up @@ -3067,7 +3068,8 @@ static void handle_stripe6(struct stripe_head *sh, struct page *tmp_page)
md_done_sync(conf->mddev, STRIPE_SECTORS, 1);
}

if (s.expanding && s.locked == 0)
if (s.expanding && s.locked == 0 &&
!test_bit(STRIPE_OP_COMPUTE_BLK, &sh->ops.pending))
handle_stripe_expansion(conf, sh, &r6s);

spin_unlock(&sh->lock);
Expand Down

0 comments on commit 67fc3bf

Please sign in to comment.