bdev/fio_plugin: add call spdk_bdev_finish

Since we do not call spdk_app_start, so we do not
use SPDK's subsystem mechanism, so we need to
cal spdk_bdev_finish by ourselves in this fio plugin

Change-Id: Idd1063482ab1a99880c88c1b092961ff3419f60c
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/382613
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Ziye Yang 2017-10-16 10:22:56 +08:00 committed by Daniel Verkamp
parent e0b220b56d
commit 2b37c71be1

View File

@ -652,5 +652,7 @@ static void fio_init spdk_fio_register(void)
static void fio_exit spdk_fio_unregister(void)
{
spdk_bdev_finish();
spdk_copy_engine_finish();
unregister_ioengine(&ioengine);
}