Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311557
b: refs/heads/master
c: 5f066c6
h: refs/heads/master
i:
  311555: b297775
v: v3
  • Loading branch information
NeilBrown committed Jul 3, 2012
1 parent b8b2e71 commit d71363b
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 7c2c57c9a98bf5961e438a376486f95346f6b0c5
refs/heads/master: 5f066c632fcfd2a33f2eb7077c15c630e9f5ea5b
14 changes: 12 additions & 2 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3588,8 +3588,18 @@ static void handle_stripe(struct stripe_head *sh)

finish:
/* wait for this device to become unblocked */
if (conf->mddev->external && unlikely(s.blocked_rdev))
md_wait_for_blocked_rdev(s.blocked_rdev, conf->mddev);
if (unlikely(s.blocked_rdev)) {
if (conf->mddev->external)
md_wait_for_blocked_rdev(s.blocked_rdev,
conf->mddev);
else
/* Internal metadata will immediately
* be written by raid5d, so we don't
* need to wait here.
*/
rdev_dec_pending(s.blocked_rdev,
conf->mddev);
}

if (s.handle_bad_blocks)
for (i = disks; i--; ) {
Expand Down

0 comments on commit d71363b

Please sign in to comment.