Add debug trace for io_u_queue_complete()
[fio.git] / init.c
diff --git a/init.c b/init.c
index 7fd38ad8e0c433491b9dcffb79376bc931f66471..66b7afe4a88a890092214231975bdd03b81b4332 100644 (file)
--- a/init.c
+++ b/init.c
@@ -213,13 +213,6 @@ static int fixup_options(struct thread_data *td)
                o->write_iolog_file = NULL;
        }
 
-       if (td->io_ops->flags & FIO_SYNCIO)
-               o->iodepth = 1;
-       else {
-               if (!o->iodepth)
-                       o->iodepth = o->open_files;
-       }
-
        /*
         * only really works for sequential io for now, and with 1 file
         */
@@ -779,6 +772,7 @@ static void usage(const char *name)
        printf("\t          \tMay be \"always\", \"never\" or \"auto\"\n");
 }
 
+#ifdef FIO_INC_DEBUG
 struct debug_level debug_levels[] = {
        { .name = "process",    .shift = FD_PROCESS, },
        { .name = "file",       .shift = FD_FILE, },
@@ -828,6 +822,12 @@ static void set_debug(const char *string)
                        log_err("fio: debug mask %s not found\n", opt);
        }
 }
+#else
+static void set_debug(const char *string)
+{
+       log_err("fio: debug tracing not included in build\n");
+}
+#endif
 
 static int parse_cmd_line(int argc, char *argv[])
 {