bdevperf: move location of bdevperf_construct_targets

Change-Id: Id6a384b91d7ab40de4382601a771b2f02bf31e81
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/362280
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Ziye Yang 2017-05-24 10:49:36 +08:00 committed by Daniel Verkamp
parent a02c0062bd
commit 615c54b443

View File

@ -486,6 +486,8 @@ bdevperf_run(void *arg1, void *arg2)
struct io_target *target;
struct spdk_event *event;
bdevperf_construct_targets();
printf("Running I/O for %d seconds...\n", g_time_in_sec);
fflush(stdout);
@ -672,8 +674,6 @@ main(int argc, char **argv)
bdevtest_init(config_file, core_mask);
bdevperf_construct_targets();
task_pool = rte_mempool_create("task_pool", 4096 * spdk_env_get_core_count(),
sizeof(struct bdevperf_task),
64, 0, NULL, NULL, task_ctor, NULL,