Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144682
b: refs/heads/master
c: 1805556
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed May 7, 2009
1 parent d4bb21f commit 809ca8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: b74fd2826c5acce20e6f691437b2d19372bc2057
refs/heads/master: 18055569127253755d01733f6ecc004ed02f88d0
12 changes: 6 additions & 6 deletions trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,17 +1809,17 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i
r10_bio->sector = sect;

raid10_find_phys(conf, r10_bio);
/* Need to check if this section will still be

/* Need to check if the array will still be
* degraded
*/
for (j=0; j<conf->copies;j++) {
int d = r10_bio->devs[j].devnum;
if (conf->mirrors[d].rdev == NULL ||
test_bit(Faulty, &conf->mirrors[d].rdev->flags)) {
for (j=0; j<conf->raid_disks; j++)
if (conf->mirrors[j].rdev == NULL ||
test_bit(Faulty, &conf->mirrors[j].rdev->flags)) {
still_degraded = 1;
break;
}
}

must_sync = bitmap_start_sync(mddev->bitmap, sect,
&sync_blocks, still_degraded);

Expand Down

0 comments on commit 809ca8b

Please sign in to comment.