spdk_dma_malloc() is not required here, as the bdev struct is neither DMA-able nor shared between processes. While here, also allocate g_null_read_buf using spdk_zmalloc() instead of spdk_dma_zmalloc(), as spdk_dma_*malloc() is about to be deprecated. Change-Id: I0dc344bc84932607c2e22a124e2093e87714ec5e Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448170 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
bdev_null_rpc.c | ||
bdev_null.c | ||
bdev_null.h | ||
Makefile |