Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186429
b: refs/heads/master
c: ede5ea0
h: refs/heads/master
i:
  186427: 6a97cfa
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Mar 6, 2010
1 parent 1882285 commit 6a5ce2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: fb61264297ca42a2a132f0433f75ccf7fd304ac6
refs/heads/master: ede5ea0b8b815560dc54c712536fdf0b456b6ad0
9 changes: 6 additions & 3 deletions trunk/drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,12 @@ static void do_writes(struct mirror_set *ms, struct bio_list *writes)
dm_rh_delay(ms->rh, bio);

while ((bio = bio_list_pop(&nosync))) {
if (unlikely(ms->leg_failure) && errors_handled(ms))
hold_bio(ms, bio);
else {
if (unlikely(ms->leg_failure) && errors_handled(ms)) {
spin_lock_irq(&ms->lock);
bio_list_add(&ms->failures, bio);
spin_unlock_irq(&ms->lock);
wakeup_mirrord(ms);
} else {
map_bio(get_default_mirror(ms), bio);
generic_make_request(bio);
}
Expand Down

0 comments on commit 6a5ce2f

Please sign in to comment.