20a01a0495
spdk_nvme_zns_report_zones() is implemented using nvme_allocate_request_user_copy(), which under the hood will do a spdk_zmalloc() with the SPDK_MALLOC_DMA flag set, and will copy over the result to our buffer. Therefore, it is redundant for us to use spdk_dma_zmalloc(), because it will cause us to allocate twice the amount of memory from the precious DMA pool than needed. Changing this zone report buffer allocation to a calloc also has the benefit of making the code uniform with all other spdk_nvme_zns_report_zones() call sites in the SPDK codebase. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: Ia354fa51c66ae07a38a9a57b07c15d145dd609f0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7005 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
abort | ||
arbitration | ||
cmb_copy | ||
fio_plugin | ||
hello_world | ||
hotplug | ||
identify | ||
nvme_manage | ||
perf | ||
reconnect | ||
Makefile |