Don't force iodepth == 1 for SYNC io engine
authorJens Axboe <jens.axboe@oracle.com>
Mon, 4 Feb 2008 08:35:03 +0000 (09:35 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 4 Feb 2008 08:35:03 +0000 (09:35 +0100)
Most will not do queuing, but allow it to be set in case some of
them do.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 721978f6626674cdfbb685ff860576c1bb286af6..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;
        }
 
                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
         */
        /*
         * only really works for sequential io for now, and with 1 file
         */