X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=73964214d3468d93a4f0ed72f4ecbd330f57b9c6;hp=120431e90cb2c1ec1693aac1f56ad2a4aa150e59;hb=1f84f1d9f85fe17c83eba504e4fb9b09a082e517;hpb=25c8b9d76ce2995c1144149df3b047d457c5613a diff --git a/fio.c b/fio.c index 120431e9..73964214 100644 --- a/fio.c +++ b/fio.c @@ -557,7 +557,7 @@ sync_done: if (full || !td->o.iodepth_batch_complete) { min_events = min(td->o.iodepth_batch_complete, td->cur_depth); - if (full && !min_events) + if (full && !min_events && td->o.iodepth_batch_complete != 0) min_events = 1; do { @@ -719,7 +719,7 @@ sync_done: if (full || !td->o.iodepth_batch_complete) { min_evts = min(td->o.iodepth_batch_complete, td->cur_depth); - if (full && !min_evts) + if (full && !min_evts && td->o.iodepth_batch_complete != 0) min_evts = 1; if (__should_check_rate(td, 0) ||