We inadvertently broke that in the previous commit, fix it up.
Fixes:
d454a205f81e ("log: fix missing entries")
Signed-off-by: Jens Axboe <axboe@fb.com>
return log && !log->avg_msec;
}
+static inline bool inline_log(struct io_log *log)
+{
+ return log->log_type == IO_LOG_TYPE_LAT ||
+ log->log_type == IO_LOG_TYPE_CLAT ||
+ log->log_type == IO_LOG_TYPE_SLAT;
+}
+
extern void finalize_logs(struct thread_data *td, bool);
extern void setup_log(struct io_log **, struct log_params *, const char *);
extern void flush_log(struct io_log *, bool);
if (this_window < iolog->avg_msec) {
int diff = iolog->avg_msec - this_window;
- if (diff > LOG_MSEC_SLACK)
+ if (inline_log(iolog) || diff > LOG_MSEC_SLACK)
return diff;
}