- fio_mutex_down(writeout_mutex);
- if (td->bw_log) {
- if (td->o.bw_log_file) {
- finish_log_named(td, td->bw_log,
- td->o.bw_log_file, "bw");
- } else
- finish_log(td, td->bw_log, "bw");
- }
- if (td->lat_log) {
- if (td->o.lat_log_file) {
- finish_log_named(td, td->lat_log,
- td->o.lat_log_file, "lat");
- } else
- finish_log(td, td->lat_log, "lat");
- }
- if (td->slat_log) {
- if (td->o.lat_log_file) {
- finish_log_named(td, td->slat_log,
- td->o.lat_log_file, "slat");
- } else
- finish_log(td, td->slat_log, "slat");
- }
- if (td->clat_log) {
- if (td->o.lat_log_file) {
- finish_log_named(td, td->clat_log,
- td->o.lat_log_file, "clat");
- } else
- finish_log(td, td->clat_log, "clat");
- }
- if (td->iops_log) {
- if (td->o.iops_log_file) {
- finish_log_named(td, td->iops_log,
- td->o.iops_log_file, "iops");
- } else
- finish_log(td, td->iops_log, "iops");
+ if (td->o.verify_state_save && !(td->flags & TD_F_VSTATE_SAVED) &&
+ (td->o.verify != VERIFY_NONE && td_write(td))) {
+ struct all_io_list *state;
+ size_t sz;
+
+ state = get_all_io_list(td->thread_number, &sz);
+ if (state) {
+ __verify_save_state(state, "local");
+ free(state);
+ }