t/io_uring: fix latency stats for depth == 1
authorJens Axboe <axboe@kernel.dk>
Sat, 9 Oct 2021 18:56:11 +0000 (12:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 Oct 2021 18:56:11 +0000 (12:56 -0600)
commitd4af2ecea2930138bbaf58fe84debef8e84761c6
tree49e15f3930c6a03b13c0758179ef0691ffe9d860
parentb1ebcbce6499fed58f87d1bcbfd50899c508d3ab
t/io_uring: fix latency stats for depth == 1

Two issues here:

- Stat increment accounting was off-by-one, causing no stats added
  for depth == 1
- The stat batch count should be a minimum of 2, since it's really
  a mask.

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