* 'master' of https://github.com/SuhoSon/fio:
thinktime: Fix missing re-init thinktime when using ramptime
uint64_t *thinktime_blocks_counter;
struct timespec last_thinktime;
- uint64_t last_thinktime_blocks;
+ int64_t last_thinktime_blocks;
/*
* State for random io, a bitmap of blocks done vs not done
void reset_all_stats(struct thread_data *td)
{
+ unsigned long long b;
int i;
reset_io_counters(td, 1);
+ b = ddir_rw_sum(td->thinktime_blocks_counter);
+ td->last_thinktime_blocks -= b;
+
for (i = 0; i < DDIR_RWDIR_CNT; i++) {
td->io_bytes[i] = 0;
td->io_blocks[i] = 0;
memcpy(&td->bw_sample_time, &td->epoch, sizeof(td->epoch));
memcpy(&td->ss.prev_time, &td->epoch, sizeof(td->epoch));
+ td->last_thinktime = td->epoch;
+
lat_target_reset(td);
clear_rusage_stat(td);
helper_reset();