Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24939
b: refs/heads/master
c: 6b1117d
h: refs/heads/master
i:
  24937: 5a16432
  24935: 5b3aa40
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Mar 31, 2006
1 parent a43e703 commit 78dcb50
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 39451a73a2d190763ba8a98f486cf23d63d22582
refs/heads/master: 6b1117d50543e2484bee037ec2589fe52492a7e7
13 changes: 12 additions & 1 deletion trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,19 @@ static int end_sync_write(struct bio *bio, unsigned int bytes_done, int error)
mirror = i;
break;
}
if (!uptodate)
if (!uptodate) {
int sync_blocks = 0;
sector_t s = r1_bio->sector;
long sectors_to_go = r1_bio->sectors;
/* make sure these bits doesn't get cleared. */
do {
bitmap_end_sync(mddev->bitmap, r1_bio->sector,
&sync_blocks, 1);
s += sync_blocks;
sectors_to_go -= sync_blocks;
} while (sectors_to_go > 0);
md_error(mddev, conf->mirrors[mirror].rdev);
}

update_head_pos(mirror, r1_bio);

Expand Down

0 comments on commit 78dcb50

Please sign in to comment.