Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107397
b: refs/heads/master
c: e542713
h: refs/heads/master
i:
  107395: 2650f9c
v: v3
  • Loading branch information
Dan Williams committed Jul 29, 2008
1 parent 6831b94 commit a9122dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: df10cfbc4d7ab93260d997df754219d390d62a9d
refs/heads/master: e542713529e323ff09d7aeb5806cf29f6f160f53
3 changes: 2 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -5996,7 +5996,8 @@ static int remove_and_add_spares(mddev_t *mddev)
if (mddev->degraded) {
rdev_for_each(rdev, rtmp, mddev) {
if (rdev->raid_disk >= 0 &&
!test_bit(In_sync, &rdev->flags))
!test_bit(In_sync, &rdev->flags) &&
!test_bit(Blocked, &rdev->flags))
spares++;
if (rdev->raid_disk < 0
&& !test_bit(Faulty, &rdev->flags)) {
Expand Down

0 comments on commit a9122dc

Please sign in to comment.