Avoid using the rbtree if we don't have to
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 504b78db0b0cd6dc1390435f56fd89d6bf19345c..bed1e28770d1b2cb2a79edf0dccfd9bc796a28e4 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -736,6 +736,8 @@ static void *thread_main(void *data)
        INIT_LIST_HEAD(&td->io_u_busylist);
        INIT_LIST_HEAD(&td->io_u_requeues);
        INIT_LIST_HEAD(&td->io_log_list);
+       INIT_LIST_HEAD(&td->io_hist_list);
+       td->io_hist_tree = RB_ROOT;
 
        if (init_io_u(td))
                goto err_sem;