numam-spdk/lib/nvme
Evgeniy Kochetov aebbce2520 nvme: Refactor active namespace list retrieval
Previous implementation allocated memory just once at the beginning of
active NS list retrieval procedure. It allocated memory for maximum
possible number of active namespaces, i.e. 'cdata.nn'.

This patch changes allocation logic. One page is allocated at the
beginning. If more is needed, reallocation is done with one more
page.

This patch also removes SPDK_MALLOC_DMA flag from allocation since we
don't do RDMA directly into this buffer.

Signed-off-by: Evgeniy Kochetov <evgeniik@nvidia.com>
Change-Id: Iaa80c4d70c54daaf71dcbf755c63a01a1d83b772
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6502
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-05-20 15:17:41 +00:00
..
Makefile lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ctrlr_cmd.c lib/nvme: add value check to fix value inversion 2021-05-05 13:32:30 +00:00
nvme_ctrlr_ocssd_cmd.c nvme: Move nsdata to namespace structure 2021-03-02 08:06:15 +00:00
nvme_ctrlr.c nvme: Refactor active namespace list retrieval 2021-05-20 15:17:41 +00:00
nvme_cuse.c nvme: add support for NVME_IOCTL_IO_CMD for cuse 2021-05-10 11:13:09 +00:00
nvme_cuse.h lib/nvme: add RPC for interacting with CUSE devices 2019-10-24 23:43:59 +00:00
nvme_fabric.c nvme/fabric: Make connect related logs more verbose 2021-02-17 10:18:05 +00:00
nvme_internal.h nvme: Refactor active namespace list retrieval 2021-05-20 15:17:41 +00:00
nvme_io_msg.c nvme: only process io_msg in primary process 2021-04-22 01:06:02 +00:00
nvme_io_msg.h lib/nvme: update io msg producers on ns manage 2020-06-05 09:01:44 +00:00
nvme_ns_cmd.c lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ns_ocssd_cmd.c nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
nvme_ns.c nvme/quirk: add MDTS excludes interleaved metadata quirk 2021-03-29 07:38:37 +00:00
nvme_opal_internal.h nvme/opal: deprecate spdk_opal_supported() 2020-05-20 14:16:44 +00:00
nvme_opal.c lib/opal: remove deprecated spdk_opal_supported() 2021-03-18 14:43:08 +00:00
nvme_pcie_common.c nvme/pcie: Add statistics per poll group 2021-04-13 21:30:52 +00:00
nvme_pcie_internal.h nvme/pcie: Add support for Persistent Memory Region (PMR) 2021-04-22 20:10:21 +00:00
nvme_pcie.c nvme: reset mapping_length correctly for contig SGL 2021-04-29 07:09:43 +00:00
nvme_poll_group.c nvme: Add functions to get/free poll group statistics 2021-04-13 21:30:52 +00:00
nvme_qpair.c nvme: add spdk_nvme_qpair_get_id 2021-02-17 10:17:43 +00:00
nvme_quirks.c nvme: remove IDENTIFY_CNS quirk from normal QEMU SSDs 2021-04-29 07:09:43 +00:00
nvme_rdma.c nvme: Add transport intrafce to get/free stats 2021-04-13 21:30:52 +00:00
nvme_tcp.c lib/nvme_tcp: Refactor the code to generate _nvme_tcp_pdu_payload_handle 2021-05-10 11:12:57 +00:00
nvme_transport.c nvme/pcie: Add support for Persistent Memory Region (PMR) 2021-04-22 20:10:21 +00:00
nvme_vfio_user.c vfio-user: optimize notice log to debug log 2021-04-15 11:23:47 +00:00
nvme_zns.c nvme: Move nsdata_zns to namespace structure 2021-03-02 08:06:15 +00:00
nvme.c lib: add a hotplug lib for device 2021-04-12 09:48:21 +00:00
spdk_nvme.map lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00