Spdk/lib/nvmf
Konrad Sztyber 475b86aa8d print better errors when creating mempools from secondary process
Multiprocess is only supported by a few libraries (e.g. NVMe driver).
Other libraries that don't support it will often fail on mempool
initialization when running as a secondary process, as the mempools are
already created by the primary process.  But the error messages are
vague and don't indicate why this happened.  So, this patch adds a check
to see if a mempool exists after spdk_mempool_create() fails and prints
an error message informing users that multiprocess is unsupported.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I6f915a94266e64dda380e3b269424cc579372a10
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14234
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
2022-08-29 11:41:32 +00:00
..
ctrlr_bdev.c nvmf: don't report E2E Protection Capabilities to client 2022-07-19 12:31:59 +00:00
ctrlr_discovery.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
ctrlr.c nvmf: decrement mgmt_io_outstanding for all AER cases 2022-07-15 12:51:31 +00:00
fc_ls.c check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
fc.c check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
Makefile libvfio-user: compile shared library based on CONFIG_SHARED flag 2022-06-23 07:43:26 +00:00
nvmf_fc.h check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
nvmf_internal.h lib/nvmf: rm nvmf_poll_group_add_transport from internal header 2022-07-18 10:18:19 +00:00
nvmf_rpc.c check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
nvmf.c lib/nvmf: don't raise assertion in nvmf_tgt_destroy_cb 2022-08-04 07:29:27 +00:00
rdma.c print better errors when creating mempools from secondary process 2022-08-29 11:41:32 +00:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c lib/nvmf: don't raise assertion in nvmf_tgt_destroy_cb 2022-08-04 07:29:27 +00:00
tcp.c accel: Rename public header to accel.h 2022-08-16 10:22:55 +00:00
transport.c print better errors when creating mempools from secondary process 2022-08-29 11:41:32 +00:00
transport.h Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
vfio_user.c nvmf/vfio-user: complete queue deletion on correct thread 2022-08-17 07:19:03 +00:00