thinktime: Fix missing re-init thinktime when using ramptime
authorsuho.son <suho.son@samsung.com>
Fri, 31 Mar 2023 07:10:09 +0000 (16:10 +0900)
committersuho.son <suho.son@samsung.com>
Fri, 31 Mar 2023 07:10:09 +0000 (16:10 +0900)
commitcfc4ad2ec90e98cc92f8ec911f6ae04e11cf2ba4
tree20428c26556b855025270802c4dfa0fcd9a84722
parentd86ac3e9f4c703b7d7c9add96e69f2d02affdc65
thinktime: Fix missing re-init thinktime when using ramptime

Prevent I/O bursts after ramptime due to thinktime.

Each thread generates a certain amount of I/O requests,
configured by thinktime_blocks.
When ramptime ends, thinktime_blocks can't control I/O.
Because thinktime_blocks are not reinitialized after ramptime.
I fixed it by reinitializing last_thinktime and last_thinktime_blocks
when ramptime ended.

Signed-off by: Suho Son <suho.son@samsung.com>
fio.h
libfio.c