Spdk/test/unit/lib/scsi
Shuhei Matsumoto f2554ee973 scsi: Change spdk_scsi_task_alloc/free_data() from public to private
This patch does a little cleanup of SPDK SCSI layer APIs.

spdk_scsi_task_alloc_data() is only used in spdk_scsi_task_scatter_data().
spck_scsi_task_free_data() is only used in spdk_scsi_task_put().

The latter was called in UT code but this can be removed without any
degradation.

SPDK SCSI layer is relatively matured and these will not be used
out of lib/scsi/task.c.

Additionally memory leak detected by ASAN is fixed in this patch.

Change-Id: I8eff7b4dbfc307c211087734649a9b9b10555f8d
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/413872
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-06-06 17:09:22 +00:00
..
dev.c scsi: validate dev name length 2018-04-10 15:43:03 -04:00
lun.c scsi: Change spdk_scsi_task_alloc/free_data() from public to private 2018-06-06 17:09:22 +00:00
scsi_bdev.c scsi: validate dev name length 2018-04-10 15:43:03 -04:00
scsi.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
Makefile test: move SCSI library unit tests to test/unit 2017-06-20 13:46:07 -04:00