bdevperf: remove task_pool
This should be removed. Change-Id: I122ef2729d8389fab6cc8883bc70f221c48f574b Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/388884 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
93848f4114
commit
1d6dfe6ff1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user