projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't do rate checks, if no ratemin has been specified.
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index c5b85aeb8c88ca2ef732135fc74ffb8d789325c1..9a3cc94897d3c49928ef27f2dade7504c955f81a 100644
(file)
--- 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;
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
*/
/*
* 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);
*/
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);
break;
case FIO_Q_BUSY:
requeue_io_u(td, &io_u);