* 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) ||
for (i = 0; i < DDIR_RWDIR_CNT; i++) {
struct io_log *log = agg_io_log[i];
- flush_log(log);
+ flush_log(log, 0);
free_log(log);
}
}