X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.c;h=9a3cc94897d3c49928ef27f2dade7504c955f81a;hb=780bf1a192f494dcbacb9c1fcc75f6c440a7051e;hp=c5b85aeb8c88ca2ef732135fc74ffb8d789325c1;hpb=c6441dc9e95cba2a31dec63272917fdf496c75c4;p=fio.git diff --git a/fio.c b/fio.c index c5b85aeb..9a3cc948 100644 --- a/fio.c +++ b/fio.c @@ -100,6 +100,12 @@ static int check_min_rate(struct thread_data *td, struct timeval *now) unsigned long spent; unsigned long rate; + /* + * No minimum rate set, always ok + */ + if (!td->ratemin) + return 0; + /* * allow a 2 second settle period in the beginning */ @@ -433,8 +439,6 @@ requeue: */ if (td->io_ops->commit == NULL) io_u_queued(td, io_u); - else if (td->io_u_queued >= td->iodepth_batch) - ret = td_io_commit(td); break; case FIO_Q_BUSY: requeue_io_u(td, &io_u);