event/nvmf: Remove use of spdk_app_stop()
This is the only reason the event.h header is included here and it isn't necessary. Signed-off-by: Ben Walker <benjamin.walker@intel.com> Change-Id: I4c0a9828cfede1ccd1c9263ad66b354ba167f434 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6919 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
fd35993219
commit
09b0c84f1b
@ -34,7 +34,6 @@
|
|||||||
#include "event_nvmf.h"
|
#include "event_nvmf.h"
|
||||||
|
|
||||||
#include "spdk/bdev.h"
|
#include "spdk/bdev.h"
|
||||||
#include "spdk/event.h"
|
|
||||||
#include "spdk/thread.h"
|
#include "spdk/thread.h"
|
||||||
#include "spdk/log.h"
|
#include "spdk/log.h"
|
||||||
#include "spdk/nvme.h"
|
#include "spdk/nvme.h"
|
||||||
@ -173,7 +172,8 @@ nvmf_tgt_create_poll_group(void *ctx)
|
|||||||
pg = calloc(1, sizeof(*pg));
|
pg = calloc(1, sizeof(*pg));
|
||||||
if (!pg) {
|
if (!pg) {
|
||||||
SPDK_ERRLOG("Not enough memory to allocate poll groups\n");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user