+ __finish_log(log);
+
+ fio_unlock_file(log->filename);
+ free_log(log);
+ return 0;
+}
+
+static int write_iops_log(struct thread_data *td, int try)
+{
+ struct io_log *log = td->iops_log;
+
+ if (!log)
+ return 0;
+
+ return finish_log(td, log, try);
+}
+
+static int write_slat_log(struct thread_data *td, int try)
+{
+ struct io_log *log = td->slat_log;
+
+ if (!log)
+ return 0;
+
+ return finish_log(td, log, try);
+}
+
+static int write_clat_log(struct thread_data *td, int try)
+{
+ struct io_log *log = td->clat_log;
+
+ if (!log)
+ return 0;
+
+ return finish_log(td, log, try);
+}
+
+static int write_lat_log(struct thread_data *td, int try)
+{
+ struct io_log *log = td->lat_log;
+
+ if (!log)
+ return 0;
+
+ return finish_log(td, log, try);
+}
+
+static int write_bandw_log(struct thread_data *td, int try)
+{
+ struct io_log *log = td->bw_log;
+
+ if (!log)
+ return 0;
+
+ return finish_log(td, log, try);