X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=backend.c;h=1dcdcf049026db4f1ae33d04284ade793b76d77f;hb=92330695e64a42fd5dc54a6970a4b8122d3cd80e;hp=e87c5f86aed25e4547c0876452efd9b46335ba52;hpb=83b2850d223f2bb91783ac5a0fa657ea60d1eff7;p=fio.git diff --git a/backend.c b/backend.c index e87c5f86..1dcdcf04 100644 --- a/backend.c +++ b/backend.c @@ -442,7 +442,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) ||