diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index 2fabd7e711..4c1f5ab481 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -497,9 +497,9 @@ submit_single_io(struct perf_task *task) if (rc != 0) { fprintf(stderr, "starting I/O failed\n"); + } else { + ns_ctx->current_queue_depth++; } - - ns_ctx->current_queue_depth++; } static void