X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Fmd%2Fdm-raid1.c;h=33f179e66bf55ab5d99d3c3fee3b4d02ab475c1f;hb=d2b698644c97cb033261536a4f2010924a00eac9;hp=9726577cde493f2ca21b7fd28386d1d2a31c8786;hpb=b8313b6da7e2e7c7f47d93d8561969a3ff9ba0ea;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 9726577..33f179e 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c @@ -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.