aebbce2520
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> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_cuse.c | ||
nvme_cuse.h | ||
nvme_fabric.c | ||
nvme_internal.h | ||
nvme_io_msg.c | ||
nvme_io_msg.h | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_opal_internal.h | ||
nvme_opal.c | ||
nvme_pcie_common.c | ||
nvme_pcie_internal.h | ||
nvme_pcie.c | ||
nvme_poll_group.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_transport.c | ||
nvme_vfio_user.c | ||
nvme_zns.c | ||
nvme.c | ||
spdk_nvme.map |