+ INIT_LIST_HEAD(&td->io_hist_list);
+ td->io_hist_tree = RB_ROOT;
+
+ td_set_runstate(td, TD_INITIALIZED);
+ fio_mutex_up(startup_mutex);
+ fio_mutex_down(td->mutex);
+
+ /*
+ * the ->mutex mutex is now no longer used, close it to avoid
+ * eating a file descriptor
+ */
+ fio_mutex_remove(td->mutex);
+
+ /*
+ * May alter parameters that init_io_u() will use, so we need to
+ * do this first.
+ */
+ if (init_iolog(td))
+ goto err;