iolog.c: fix inaccurate clat when replay trace
authorKookoo Gu <Zhimin.Gu@solidigm.com>
Wed, 26 Jul 2023 04:48:35 +0000 (12:48 +0800)
committerKookoo Gu <Zhimin.Gu@solidigm.com>
Thu, 27 Jul 2023 02:33:37 +0000 (10:33 +0800)
commitb85c01f7e9dfc468eb78faf86692433e6105178d
treeb0b68840399420c8578342da80a96494a51ffdcc
parent0b47b2cf3dab1d26d72f52ed8c19f782a8277d3a
iolog.c: fix inaccurate clat when replay trace

When do timestamp replay with high qd it will only reap the
completed commands when the qd reach the max iodepth, the commands
probably are finished long ago before command completion handling.

Fix is to use io_u_queued_complete instead of just usec_sleep in
iolog_delay

Signed-off-by: Kookoo Gu <Zhimin.Gu@solidigm.com>
iolog.c