Fio 1.24
[fio.git] / init.c
diff --git a/init.c b/init.c
index a8acdc04b4e1be49fc080be3f0a9a17e09281cef..95c282acaae8bff48b30eedbd9ef2ffde5427ead 100644 (file)
--- a/init.c
+++ b/init.c
@@ -19,7 +19,7 @@
 #include "smalloc.h"
 #include "filehash.h"
 
-static char fio_version_string[] = "fio 1.23";
+static char fio_version_string[] = "fio 1.24";
 
 #define FIO_RANDSEED           (0xb1899bedUL)
 
@@ -214,6 +214,15 @@ static int fixup_options(struct thread_data *td)
 {
        struct thread_options *o = &td->o;
 
+#ifndef FIO_HAVE_PSHARED_MUTEX
+       if (!td->o.use_thread) {
+               log_info("fio: this platform does not support process shared"
+                        " mutexes, forcing use of threads. Use the 'thread'"
+                        " option to get rid of this warning.\n");
+               td->o.use_thread = 1;
+       }
+#endif
+
 #ifndef FIO_HAVE_CPU_AFFINITY
        if (td->o.gtod_cpu) {
                log_err("fio: platform must support CPU affinity for"
@@ -886,6 +895,7 @@ struct debug_level debug_levels[] = {
        { .name = "parse",      .shift = FD_PARSE },
        { .name = "diskutil",   .shift = FD_DISKUTIL },
        { .name = "job",        .shift = FD_JOB },
+       { .name = "mutex",      .shift = FD_MUTEX },
        { .name = NULL, },
 };