Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298550
b: refs/heads/master
c: a42f9d8
h: refs/heads/master
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed Apr 3, 2012
1 parent 892dda9 commit 36a73de
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 24b961f811a3e790a9b93604d2594bfb6cce4fa4
refs/heads/master: a42f9d83b5c05dc6e678a1f0cd9767502c2c58de
3 changes: 1 addition & 2 deletions trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,8 +2386,7 @@ static sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipp
int ok = 1;
for (i = 0 ; i < conf->raid_disks * 2 ; i++)
if (r1_bio->bios[i]->bi_end_io == end_sync_write) {
struct md_rdev *rdev =
rcu_dereference(conf->mirrors[i].rdev);
struct md_rdev *rdev = conf->mirrors[i].rdev;
ok = rdev_set_badblocks(rdev, sector_nr,
min_bad, 0
) && ok;
Expand Down

0 comments on commit 36a73de

Please sign in to comment.