examples/ioat: add an assertion for the memory allocation
Change-Id: I3ac420bd12c68cfeb41b77fff2b708076f5b87e5 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4123 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
9c1d648315
commit
bd8afe1fc3
@ -307,7 +307,9 @@ submit_xfers(struct thread_entry *thread_entry, uint64_t queue_depth)
|
||||
while (queue_depth-- > 0) {
|
||||
struct ioat_task *ioat_task = NULL;
|
||||
ioat_task = spdk_mempool_get(thread_entry->task_pool);
|
||||
assert(ioat_task != NULL);
|
||||
ioat_task->buffer = spdk_mempool_get(thread_entry->data_pool);
|
||||
assert(ioat_task->buffer != NULL);
|
||||
|
||||
ioat_task->type = IOAT_COPY_TYPE;
|
||||
if (spdk_ioat_get_dma_capabilities(thread_entry->chan) & SPDK_IOAT_ENGINE_FILL_SUPPORTED) {
|
||||
|
Loading…
Reference in New Issue
Block a user