Commit 1d6dfe6f authored by Ziye Yang's avatar Ziye Yang Committed by Daniel Verkamp
Browse files

bdevperf: remove task_pool



This should be removed.

Change-Id: I122ef2729d8389fab6cc8883bc70f221c48f574b
Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/388884


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 93848f41
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ static int g_time_in_sec;
static int g_show_performance_real_time = 0;
static bool g_run_failed = false;
static bool g_zcopy = true;
static struct spdk_mempool *task_pool;
static int g_mem_size = 0;
static unsigned g_master_core;

@@ -601,8 +600,8 @@ bdevperf_construct_targets_tasks(void)

				task->buf = spdk_dma_zmalloc(g_io_size, g_min_alignment, NULL);
				if (!task->buf) {
					fprintf(stderr, "Cannot allocate task->buf\n");
					spdk_mempool_put(task_pool, task);
					fprintf(stderr, "Cannot allocate buf for task=%p\n", task);
					free(task);
					goto ret;
				}