Loading
bdevperf: Use task->iov for non-zcopy read and verify read
To use spdk_bdev_ext_io_opts structure, we have to use iovec structure for non-zcopy read and verify read. For verify read, task->verify_buf is allocated and used if job->buf_size is large but a buffer allocated internally in the generic bdev layer is used otherwise. For the later case, the iovec passed to the bdev I/O API must be allocated until the corresponding completion callback is called. Hence, we use task->iov for verify read. For generic non-zcopy read, we also use task->iov. In bdevperf_complete(), we do not have to get iovec using spdk_bdev_io_get_iovec() because we use task->iov for all cases now. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I64e148e1f8b4b5b4c6bd435e126af0cc98155778 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21261 Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>