Commit 7ae5b864 authored by Ziye Yang's avatar Ziye Yang Committed by Changpeng Liu
Browse files

event/nvmf: remove the unnecessary check in spdk_nvmf_subsystem_fini



Since we already checked the core info in _spdk_subsystem_fini_next
function.

Change-Id: I6ab28d8fb11a7a07ae8c14c27357db236bf51b3e
Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/446190


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarSeth Howell <seth.howell5141@gmail.com>
Reviewed-by: default avatarqun wan <qun.wan@intel.com>
parent 0f015133
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -104,14 +104,8 @@ _spdk_nvmf_shutdown_cb(void *arg1, void *arg2)
static void
spdk_nvmf_subsystem_fini(void)
{
	/* Always let the first core to handle the case */
	if (spdk_env_get_current_core() != spdk_env_get_first_core()) {
		spdk_event_call(spdk_event_allocate(spdk_env_get_first_core(),
						    _spdk_nvmf_shutdown_cb, NULL, NULL));
	} else {
	_spdk_nvmf_shutdown_cb(NULL, NULL);
}
}

static void
nvmf_tgt_poll_group_add(void *arg1, void *arg2)