Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157221
b: refs/heads/master
c: d2b6986
h: refs/heads/master
i:
  157219: eaa2915
v: v3
  • Loading branch information
Jonathan Brassow authored and Alasdair G Kergon committed Sep 4, 2009
1 parent 2cb7fe5 commit 565da4d
Show file tree
Hide file tree
Showing 2 changed files with 8 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: b8313b6da7e2e7c7f47d93d8561969a3ff9ba0ea
refs/heads/master: d2b698644c97cb033261536a4f2010924a00eac9
8 changes: 7 additions & 1 deletion trunk/drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,13 @@ static void do_writes(struct mirror_set *ms, struct bio_list *writes)
*/
dm_rh_inc_pending(ms->rh, &sync);
dm_rh_inc_pending(ms->rh, &nosync);
ms->log_failure = dm_rh_flush(ms->rh) ? 1 : 0;

/*
* If the flush fails on a previous call and succeeds here,
* we must not reset the log_failure variable. We need
* userspace interaction to do that.
*/
ms->log_failure = dm_rh_flush(ms->rh) ? 1 : ms->log_failure;

/*
* Dispatch io.
Expand Down

0 comments on commit 565da4d

Please sign in to comment.