event: Remove extra event from subsystem shutdown path
Change-Id: I1b4a64fc5efdb5abd8bdcd9e91a7e8fb06fbfe3a Reviewed-on: https://review.gerrithub.io/386714 Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
a6fea52116
commit
a1133a9b67
@ -204,27 +204,15 @@ spdk_subsystem_fini_next(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
spdk_subsystem_fini_schedule(void *arg1, void *arg2)
|
||||
{
|
||||
spdk_subsystem_fini_next();
|
||||
}
|
||||
|
||||
void
|
||||
spdk_subsystem_fini(struct spdk_event *app_stop_event)
|
||||
{
|
||||
struct spdk_event *fini_event;
|
||||
|
||||
assert(g_next_subsystem == NULL);
|
||||
|
||||
g_app_stop_event = app_stop_event;
|
||||
|
||||
/* There is assumption that whole fini path is done on one core. */
|
||||
assert(g_app_stop_event->lcore == spdk_env_get_current_core());
|
||||
|
||||
g_fini_core = spdk_env_get_current_core();
|
||||
fini_event = spdk_event_allocate(g_fini_core, spdk_subsystem_fini_schedule, NULL, NULL);
|
||||
spdk_event_call(fini_event);
|
||||
|
||||
spdk_subsystem_fini_next();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user