nvme/perf: remove extra check_io function.

This function was just a wrapper for a one line call.

Change-Id: If91338f917a110fda2493da4022c0a18281418ca
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/754
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
Seth Howell 2020-02-10 13:44:37 -07:00 committed by Tomasz Zawadzki
parent 7a5b2019e8
commit 806d411693

View File

@ -965,12 +965,6 @@ io_complete(void *ctx, const struct spdk_nvme_cpl *cpl)
task_complete(task);
}
static void
check_io(struct ns_worker_ctx *ns_ctx)
{
ns_ctx->entry->fn_table->check_io(ns_ctx);
}
static struct perf_task *
allocate_task(struct ns_worker_ctx *ns_ctx, int queue_depth)
{
@ -1081,7 +1075,7 @@ work_fn(void *arg)
*/
ns_ctx = worker->ns_ctx;
while (ns_ctx != NULL) {
check_io(ns_ctx);
ns_ctx->entry->fn_table->check_io(ns_ctx);
ns_ctx = ns_ctx->next;
}
@ -1108,7 +1102,7 @@ work_fn(void *arg)
}
if (ns_ctx->current_queue_depth > 0) {
check_io(ns_ctx);
ns_ctx->entry->fn_table->check_io(ns_ctx);
if (ns_ctx->current_queue_depth == 0) {
cleanup_ns_worker_ctx(ns_ctx);
} else {