t/io_uring: further simplify inflight tracking
authorJens Axboe <axboe@kernel.dk>
Sat, 28 Aug 2021 21:37:25 +0000 (15:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 28 Aug 2021 21:37:25 +0000 (15:37 -0600)
Don't dump the last submitter inflight as well, just use file_depths()
for all of them.

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

index 607c79461929ebd6b53294984877b2ea75c0c98f..3130e4695179f25dfd037cb229858e1ca57d70e9 100644 (file)
@@ -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;