event: Eliminate extra event in spdk_subsystem_init
This isn't required anymore because spdk_subsystem_init is now always called after an event has been executed, so it always runs after the framework has initialized. Change-Id: I05e1a4dd605f27247b6d43f5234173e07d9b9dd2 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446996 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4d6a89044f
commit
50c48ee92d
@ -150,11 +150,14 @@ spdk_subsystem_init_next(int rc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
spdk_subsystem_verify(void *arg1, void *arg2)
|
spdk_subsystem_init(spdk_msg_fn cb_fn, void *cb_arg)
|
||||||
{
|
{
|
||||||
struct spdk_subsystem_depend *dep;
|
struct spdk_subsystem_depend *dep;
|
||||||
|
|
||||||
|
g_app_start_fn = cb_fn;
|
||||||
|
g_app_start_arg = cb_arg;
|
||||||
|
|
||||||
/* Verify that all dependency name and depends_on subsystems are registered */
|
/* Verify that all dependency name and depends_on subsystems are registered */
|
||||||
TAILQ_FOREACH(dep, &g_subsystems_deps, tailq) {
|
TAILQ_FOREACH(dep, &g_subsystems_deps, tailq) {
|
||||||
if (!spdk_subsystem_find(&g_subsystems, dep->name)) {
|
if (!spdk_subsystem_find(&g_subsystems, dep->name)) {
|
||||||
@ -175,18 +178,6 @@ spdk_subsystem_verify(void *arg1, void *arg2)
|
|||||||
spdk_subsystem_init_next(0);
|
spdk_subsystem_init_next(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
spdk_subsystem_init(spdk_msg_fn cb_fn, void *cb_arg)
|
|
||||||
{
|
|
||||||
struct spdk_event *verify_event;
|
|
||||||
|
|
||||||
g_app_start_fn = cb_fn;
|
|
||||||
g_app_start_arg = cb_arg;
|
|
||||||
|
|
||||||
verify_event = spdk_event_allocate(spdk_env_get_current_core(), spdk_subsystem_verify, NULL, NULL);
|
|
||||||
spdk_event_call(verify_event);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_spdk_subsystem_fini_next(void *arg1)
|
_spdk_subsystem_fini_next(void *arg1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user