From 4f2152278e0b3c35ded02fb3e6fb550eab7bedcd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 28 Aug 2021 15:37:25 -0600 Subject: [PATCH] t/io_uring: further simplify inflight tracking Don't dump the last submitter inflight as well, just use file_depths() for all of them. Signed-off-by: Jens Axboe --- t/io_uring.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/t/io_uring.c b/t/io_uring.c index 607c7946..3130e469 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -530,7 +530,7 @@ static void file_depths(char *buf) if (prev) p += sprintf(p, " %d", f->pending_ios); else - p += sprintf(p, "%d ", f->pending_ios); + p += sprintf(p, "%d", f->pending_ios); prev = true; } } @@ -708,9 +708,8 @@ int main(int argc, char *argv[]) } else rpc = ipc = -1; file_depths(fdepths); - printf("IOPS=%lu, IOS/call=%ld/%ld, inflight=%u (%s)\n", - this_done - done, rpc, ipc, s->inflight, - fdepths); + printf("IOPS=%lu, IOS/call=%ld/%ld, inflight=(%s)\n", + this_done - done, rpc, ipc, fdepths); done = this_done; calls = this_call; reap = this_reap; -- 2.25.1