Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311562
b: refs/heads/master
c: 32644af
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Jul 3, 2012
1 parent f7be087 commit 0bd70b8
Show file tree
Hide file tree
Showing 2 changed files with 3 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: fab363b5ff502d1b39ddcfec04271f5858d9f26e
refs/heads/master: 32644afd8975d19174bcb9ba34687c32dd810a09
4 changes: 2 additions & 2 deletions trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sect
int bad_sectors;

int disk = start_disk + i;
if (disk >= conf->raid_disks)
disk -= conf->raid_disks;
if (disk >= conf->raid_disks * 2)
disk -= conf->raid_disks * 2;

rdev = rcu_dereference(conf->mirrors[disk].rdev);
if (r1_bio->bios[disk] == IO_BLOCKED
Expand Down

0 comments on commit 0bd70b8

Please sign in to comment.