t/io_uring: remove extra add_stat() call
authorJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 18:33:40 +0000 (12:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 18:33:40 +0000 (12:33 -0600)
If we're batching the stat updates, it's incorrect to add the individual
stat. Would have skewed the percentiles, and make -t1 run slower than it
otherwise would have.

Fixes: ab85494f8bf0 ("t/io_uring: batch stat updates")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 2ec4caeb6a68e5897deda7df68fe35a3fe0d7703..217697b2c8ffae1d4e3b96dea08c1b026bf3b454 100644 (file)
@@ -519,7 +519,6 @@ static int reap_events(struct submitter *s)
                                last_idx = clock_index;
                        }
                        stat_nr++;
-                       add_stat(s, clock_index, 1);
                }
                reaped++;
                head++;