Commit 806d4116 authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

nvme/perf: remove extra check_io function.



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

Change-Id: If91338f917a110fda2493da4022c0a18281418ca
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/754


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent 7a5b2019
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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 {