Remember to init and exit the smalloc allocator
[fio.git] / init.c
diff --git a/init.c b/init.c
index a7b0b6554b8f4d58ab3f6882bbffe2ebfbf3e951..e53f103f65bf1f8f6659fe51a2b9d97d1cda72c4 100644 (file)
--- a/init.c
+++ b/init.c
@@ -16,8 +16,9 @@
 
 #include "fio.h"
 #include "parse.h"
+#include "smalloc.h"
 
-static char fio_version_string[] = "fio 1.18.1";
+static char fio_version_string[] = "fio 1.19";
 
 #define FIO_RANDSEED           (0xb1899bedUL)
 
@@ -466,7 +467,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
                        f->real_file_size = -1ULL;
        }
 
-       td->mutex = fio_sem_init(0);
+       td->mutex = fio_mutex_init(0);
 
        td->ts.clat_stat[0].min_val = td->ts.clat_stat[1].min_val = ULONG_MAX;
        td->ts.slat_stat[0].min_val = td->ts.slat_stat[1].min_val = ULONG_MAX;
@@ -742,6 +743,8 @@ static void free_shm(void)
                threads = NULL;
                shmctl(shm_id, IPC_RMID, &sbuf);
        }
+
+       scleanup();
 }
 
 /*
@@ -812,6 +815,7 @@ struct debug_level debug_levels[] = {
        { .name = "blktrace",   .shift = FD_BLKTRACE },
        { .name = "verify",     .shift = FD_VERIFY },
        { .name = "random",     .shift = FD_RANDOM },
+       { .name = "parse",      .shift = FD_PARSE },
        { },
 };