t/io_uring: check for valid clock_index and finish state for stats
authorJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:35:15 +0000 (16:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:35:15 +0000 (16:35 -0600)
commit265697fc16b767fee5fae25a73d74ec4df20d94a
tree852760240f1cf64f52be31524411619315a87c21
parent52479d8ba51c9c3461220673cae01b0e57d9050f
t/io_uring: check for valid clock_index and finish state for stats

If the clock_index isn't non-zero, it's not valid and we should disregard
the sample. Ditto if an exit signal has been sent, we're done at that
point and aren't interested in the last samples.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c