test/nvme: Increment current_queue_depth only if I/O submission succeeded
current_queue_depth should have been incremented only if I/O submission succeeded. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ib26b42b0ab195eba7536b2403a31d42305d77433 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2585 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
240b243af5
commit
948bf82228
@ -325,10 +325,10 @@ submit_single_io(void)
|
||||
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "starting I/O failed\n");
|
||||
}
|
||||
|
||||
} else {
|
||||
g_ns->current_queue_depth++;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
io_complete(void *ctx, const struct spdk_nvme_cpl *completion)
|
||||
|
@ -202,10 +202,10 @@ submit_single_io(struct ns_worker_ctx *ns_ctx)
|
||||
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "starting I/O failed\n");
|
||||
}
|
||||
|
||||
} else {
|
||||
ns_ctx->current_queue_depth++;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
task_complete(struct reset_task *task, const struct spdk_nvme_cpl *completion)
|
||||
|
Loading…
Reference in New Issue
Block a user