diff options
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r-- | drivers/md/dm-raid1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index bde904606099..85d254edd9be 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -405,8 +405,7 @@ static void rh_update_states(struct region_hash *rh) | |||
405 | mempool_free(reg, rh->region_pool); | 405 | mempool_free(reg, rh->region_pool); |
406 | } | 406 | } |
407 | 407 | ||
408 | if (!list_empty(&recovered)) | 408 | rh->log->type->flush(rh->log); |
409 | rh->log->type->flush(rh->log); | ||
410 | 409 | ||
411 | list_for_each_entry_safe (reg, next, &clean, list) | 410 | list_for_each_entry_safe (reg, next, &clean, list) |
412 | mempool_free(reg, rh->region_pool); | 411 | mempool_free(reg, rh->region_pool); |