Skip to content

Commit

Permalink
dm raid1: fix do_failures
Browse files Browse the repository at this point in the history
Missing braces.  Commit 1f965b1 (dm raid1: separate region_hash interface
part1) broke it.

Signed-off-by: Ilpo Jarvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Heinz Mauelshagen <hjm@redhat.com>
  • Loading branch information
Ilpo Jarvinen authored and Alasdair G Kergon committed Oct 30, 2008
1 parent e946217 commit b34578a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,10 @@ static void do_failures(struct mirror_set *ms, struct bio_list *failures)
return;

if (!ms->log_failure) {
while ((bio = bio_list_pop(failures)))
while ((bio = bio_list_pop(failures))) {
ms->in_sync = 0;
dm_rh_mark_nosync(ms->rh, bio, bio->bi_size, 0);
}
return;
}

Expand Down

0 comments on commit b34578a

Please sign in to comment.