test/dma: call spdk_thread_exit()

We should always exit threads that we create.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ife982798bc23a5da5706b9baca80e102a4541bab
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15501
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
Jim Harris 2022-11-17 03:05:01 +00:00 committed by Tomasz Zawadzki
parent 97011ecc92
commit dedc926239

View File

@ -185,6 +185,7 @@ dma_test_check_and_signal_task_done(struct dma_test_task *task)
spdk_put_io_channel(task->channel); spdk_put_io_channel(task->channel);
spdk_bdev_close(task->desc); spdk_bdev_close(task->desc);
spdk_thread_send_msg(g_main_thread, dma_test_task_complete, task); spdk_thread_send_msg(g_main_thread, dma_test_task_complete, task);
spdk_thread_exit(spdk_get_thread());
} }
} }