engines:io_uring: fix clat calculation for sqthread poll
authorAnkit Kumar <ankit.kumar@samsung.com>
Wed, 23 Nov 2022 11:27:37 +0000 (16:57 +0530)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 23 Nov 2022 19:06:03 +0000 (14:06 -0500)
commitc011bf1292f14ec2bb05fa37a492509dc8640fdd
treea0da9d99dadd216c5ed445c41f26ec5484d4796c
parent5fdb9fe964013a174e56e544a0747592935cdc1f
engines:io_uring: fix clat calculation for sqthread poll

When sqthread_poll is specified for io_uring and io_uring_cmd I/O
engines, fio reports garbage value for completion latencies. This is
because the issue time was not recorded. Added a change for that.
On the other hand submission latency for sqthread poll is really just
the time it takes to fill in the SQ ring entries and any syscall
required to wake up the idle kernel thread. So there is really no need
to report those.

This fixes the issue: https://github.com/axboe/fio/issues/1484

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/io_uring.c