diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-06 14:24:21 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-06 14:24:21 +0100 |
commit | 4fda87df09bee2b1bf236aba408c3236d4f1fbca (patch) | |
tree | f1ec4a5b8696c89141bcdc25b6920b3caf5c9f97 /drivers/md/raid1.c | |
parent | 70658b99490dd86cfdbf4fca117bbe2ef9a80d03 (diff) | |
parent | 3b8f4a70b840cff298010481d39404e9c39030d1 (diff) | |
download | linux-4fda87df09bee2b1bf236aba408c3236d4f1fbca.tar.gz |
Merge tag 'asoc-fix-v4.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v4.0
A few driver specific fixes here, none of them earth shattering in
themselves, that have accumliated since the opening of the merge window.
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 4153da5d4011..d34e238afa54 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -560,7 +560,7 @@ static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sect if (test_bit(WriteMostly, &rdev->flags)) { /* Don't balance among write-mostly, just * use the first as a last resort */ - if (best_disk < 0) { + if (best_dist_disk < 0) { if (is_badblock(rdev, this_sector, sectors, &first_bad, &bad_sectors)) { if (first_bad < this_sector) @@ -569,7 +569,8 @@ static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sect best_good_sectors = first_bad - this_sector; } else best_good_sectors = sectors; - best_disk = disk; + best_dist_disk = disk; + best_pending_disk = disk; } continue; } |