Don't allow FIO_SYNCIO io engine flag to override queue depth
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 04a06bac1bee010b82866de1ade9ffd5178f3d7f..fcd15286a95b971692b5ca65af9de34e2bfd5662 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -639,11 +639,7 @@ static int init_io_u(struct thread_data *td)
        int i, max_units;
        char *p;
 
-       if (td->io_ops->flags & FIO_SYNCIO)
-               max_units = 1;
-       else
-               max_units = td->o.iodepth;
-
+       max_units = td->o.iodepth;
        max_bs = max(td->o.max_bs[DDIR_READ], td->o.max_bs[DDIR_WRITE]);
        td->orig_buffer_size = (unsigned long long) max_bs * (unsigned long long) max_units;