Skip to contentSkip to conversation

Fix thinktime_blocks

PATCH Superseded HongweiQin 2 participants 2 messages Jan 17, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

HongweiQin

author
#0 lore raw

PATCH 1/1 Fix thinktime_blocks

According to the manual, the thinktime_blocks controls how many blocks to issue (instead of complete) before waiting.

---
 backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
backend.c +1 -1
index e20a2e0..c85669c 100644
@@ -864,7 +864,7 @@ static void handle_thinktime(struct thread_data *td, enum fio_ddir ddir)
 	uint64_t total;
 	int left;
 
-	b = ddir_rw_sum(td->io_blocks);
+	b = ddir_rw_sum(td->io_issues);
 	if (b % td->o.thinktime_blocks)
 		return;
 
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 7 lines · HongweiQin

According to the manual, the thinktime_blocks controls how many blocks to issue (instead of complete) before waiting.

---
 backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

At this point wouldn't it be better to update the help to reflect the code rather than the other way around?

Signature · 1 line
Sitsofe