Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311555
b: refs/heads/master
c: 1850753
h: refs/heads/master
i:
  311553: 0d04ba2
  311551: 606cd78
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed Jul 3, 2012
1 parent 29d5cd4 commit b297775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c0544e255dd6582a9899572e120fb55d9f672a4
refs/heads/master: 1850753d2e6d9ca7856581ca5d3cf09521e6a5d7
6 changes: 6 additions & 0 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,12 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
* a chance*/
md_check_recovery(conf->mddev);
}
/*
* Because md_wait_for_blocked_rdev
* will dec nr_pending, we must
* increment it first.
*/
atomic_inc(&rdev->nr_pending);
md_wait_for_blocked_rdev(rdev, conf->mddev);
} else {
/* Acknowledged bad block - skip the write */
Expand Down

0 comments on commit b297775

Please sign in to comment.