From 836365452f6525a7d670205b823f7982de48f844 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 22 Jun 2017 17:15:27 -0600 Subject: [PATCH] iolog: ensure proper flushing of compressed logs Signed-off-by: Jens Axboe --- iolog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iolog.h b/iolog.h index 6274aef9..d157fa28 100644 --- a/iolog.h +++ b/iolog.h @@ -264,7 +264,7 @@ struct log_params { static inline bool per_unit_log(struct io_log *log) { - return log && !log->avg_msec; + return log && (!log->avg_msec || log->log_gz || log->log_gz_store); } static inline bool inline_log(struct io_log *log) -- 2.25.1