iolog: ensure proper flushing of compressed logs
authorJens Axboe <axboe@kernel.dk>
Thu, 22 Jun 2017 23:15:27 +0000 (17:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Jun 2017 23:15:27 +0000 (17:15 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
iolog.h

diff --git a/iolog.h b/iolog.h
index 6274aef9e86c92b6dc44539651a7d234180c0e69..d157fa281bd2828f93e050906f71a21cd5ae817f 100644 (file)
--- a/iolog.h
+++ b/iolog.h
@@ -264,7 +264,7 @@ struct log_params {
 
 static inline bool per_unit_log(struct io_log *log)
 {
 
 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)
 }
 
 static inline bool inline_log(struct io_log *log)