projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move conditional lib files to oslib/
[fio.git]
/
backend.c
diff --git
a/backend.c
b/backend.c
index aa94acf2499808e4543922f26ea83d21ebff06d4..9a142e8222cc431caad9982365a27c39b2bdba13 100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-49,7
+49,7
@@
#include "cgroup.h"
#include "profile.h"
#include "lib/rand.h"
#include "cgroup.h"
#include "profile.h"
#include "lib/rand.h"
-#include "memalign.h"
+#include "
lib/
memalign.h"
#include "server.h"
#include "lib/getrusage.h"
#include "idletime.h"
#include "server.h"
#include "lib/getrusage.h"
#include "idletime.h"
@@
-448,7
+448,7
@@
static int wait_for_completions(struct thread_data *td, struct timeval *time)
* if the queue is full, we MUST reap at least 1 event
*/
min_evts = min(td->o.iodepth_batch_complete_min, td->cur_depth);
* if the queue is full, we MUST reap at least 1 event
*/
min_evts = min(td->o.iodepth_batch_complete_min, td->cur_depth);
- if ((full && !min_evts) || !td->o.iodepth_batch_complete_min)
+
if ((full && !min_evts) || !td->o.iodepth_batch_complete_min)
min_evts = 1;
if (time && (__should_check_rate(td, DDIR_READ) ||
min_evts = 1;
if (time && (__should_check_rate(td, DDIR_READ) ||
@@
-868,7
+868,7
@@
static uint64_t do_io(struct thread_data *td)
if (flow_threshold_exceeded(td))
continue;
if (flow_threshold_exceeded(td))
continue;
- if (bytes_issued >= total_bytes)
+ if (
!td->o.time_based &&
bytes_issued >= total_bytes)
break;
io_u = get_io_u(td);
break;
io_u = get_io_u(td);