* completed io_u's first. Note that we can get BUSY even
* without IO queued, if the system is resource starved.
*/
* completed io_u's first. Note that we can get BUSY even
* without IO queued, if the system is resource starved.
*/
full = queue_full(td) || (ret == FIO_Q_BUSY && td->cur_depth);
if (full || !td->o.iodepth_batch_complete) {
min_events = min(td->o.iodepth_batch_complete,
full = queue_full(td) || (ret == FIO_Q_BUSY && td->cur_depth);
if (full || !td->o.iodepth_batch_complete) {
min_events = min(td->o.iodepth_batch_complete,