Make windowsaio match iometer performance. Without this, we see around 60k on local...
[fio.git] / backend.c
index 65a3e184a6d77d7d5439f23c9a4c17813a405326..a0b2c33937ad29afb0c3c7abc04e5d5b9a1cd943 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -428,7 +428,7 @@ static int wait_for_completions(struct thread_data *td, struct timeval *time)
         * if the queue is full, we MUST reap at least 1 event
         */
        min_evts = min(td->o.iodepth_batch_complete, td->cur_depth);
-       if (full && !min_evts)
+    if ((full && !min_evts) || !td->o.iodepth_batch_complete)
                min_evts = 1;
 
        if (time && (__should_check_rate(td, DDIR_READ) ||