Spdk/test/lib/scsi
Pawel Wodkowski f30f0c76f1 scsi: refactor usage of iov from spdk_scsi_task
This patch is preparation for fixing alloc_len overrun in SENSE 6/10 and
READCAP 6/10. To simplify code forbid usage of iov outside of
scsi/task.c.

This also drop SPDK_SCSI_TASK_ALLOC_BUFFER flag that obfuscate code. As
a replacement assume that if field alloc_len is non zero it mean that
iov.buffer is internally allocated. Functions
spdk_scsi_task_free_data(), spdk_scsi_task_set_data() and
spdk_scsi_task_alloc_data() manage this field.

Change-Id: Ife357a5bc36121f93a4c5d259b9a5a01559e7708
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
2016-11-09 10:19:53 -07:00
..
dev scsi: change spdk_put_task to spdk_scsi_task_put 2016-09-29 15:42:29 -07:00
init Replace rte_get_tsc calls with spdk_get_ticks 2016-10-11 13:34:09 -07:00
lun scsi: refactor usage of iov from spdk_scsi_task 2016-11-09 10:19:53 -07:00
scsi_bdev scsi: refactor usage of iov from spdk_scsi_task 2016-11-09 10:19:53 -07:00
scsi_nvme scsi: translate nvme error to scsi error (#54) 2016-10-28 13:06:45 -07:00
Makefile scsi: translate nvme error to scsi error (#54) 2016-10-28 13:06:45 -07:00
scsi.sh scsi: translate nvme error to scsi error (#54) 2016-10-28 13:06:45 -07:00