nvme/fio_plugin: call spdk_env_fini() when exiting the process
spdk_fio_cleanup() is called per-thread basis, and spdk_env_fini() is called multiple times when running with `numjobs` greater than 1. Fix issue #2366. Change-Id: I39ec379d71eeba1ca14ba42a93b819220ee1f307 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11443 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: GangCao <gang.cao@intel.com>
This commit is contained in:
parent
594a3a8ec7
commit
b0f02769f9
@ -1464,10 +1464,6 @@ static void spdk_fio_cleanup(struct thread_data *td)
|
||||
pthread_join(g_ctrlr_thread_id, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (g_spdk_env_initialized) {
|
||||
spdk_env_fini();
|
||||
}
|
||||
}
|
||||
|
||||
/* This function enables addition of SPDK parameters to the fio config
|
||||
@ -1743,6 +1739,10 @@ static void fio_init fio_spdk_register(void)
|
||||
|
||||
static void fio_exit fio_spdk_unregister(void)
|
||||
{
|
||||
if (g_spdk_env_initialized) {
|
||||
spdk_env_fini();
|
||||
}
|
||||
|
||||
unregister_ioengine(&ioengine);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user