From b180363dc27dfc306c1d86b522aff02acc95f42f Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 5 Nov 2018 15:28:16 -0700 Subject: [PATCH] fio_plugin: Move spdk_fio_module_finish_done up This is going to be used in another function later in this patch series, so move it up to avoid forward declaring. Change-Id: I05227ed38b0d98b95f6a7126e9db1e3c31dc21c5 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/432087 (master) Reviewed-on: https://review.gerrithub.io/437199 Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System --- examples/bdev/fio_plugin/fio_plugin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/bdev/fio_plugin/fio_plugin.c b/examples/bdev/fio_plugin/fio_plugin.c index f5a546d5e..31ceea319 100644 --- a/examples/bdev/fio_plugin/fio_plugin.c +++ b/examples/bdev/fio_plugin/fio_plugin.c @@ -228,6 +228,12 @@ spdk_fio_cleanup_thread(struct spdk_fio_thread *fio_thread) free(fio_thread); } +static void +spdk_fio_module_finish_done(void *cb_arg) +{ + *(bool *)cb_arg = true; +} + static void * spdk_init_thread_poll(void *arg) { @@ -733,12 +739,6 @@ static void fio_init spdk_fio_register(void) register_ioengine(&ioengine); } -static void -spdk_fio_module_finish_done(void *cb_arg) -{ - *(bool *)cb_arg = true; -} - static void spdk_fio_finish_env(void) {