diff --git a/module/event/subsystems/nvmf/nvmf_tgt.c b/module/event/subsystems/nvmf/nvmf_tgt.c index 5fd27e5366..5f5ea5dbdf 100644 --- a/module/event/subsystems/nvmf/nvmf_tgt.c +++ b/module/event/subsystems/nvmf/nvmf_tgt.c @@ -34,7 +34,6 @@ #include "event_nvmf.h" #include "spdk/bdev.h" -#include "spdk/event.h" #include "spdk/thread.h" #include "spdk/log.h" #include "spdk/nvme.h" @@ -173,7 +172,8 @@ nvmf_tgt_create_poll_group(void *ctx) pg = calloc(1, sizeof(*pg)); if (!pg) { SPDK_ERRLOG("Not enough memory to allocate poll groups\n"); - spdk_app_stop(-ENOMEM); + g_tgt_state = NVMF_TGT_ERROR; + nvmf_tgt_advance_state(); return; }