Spdk/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 io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
Makefile scsi: remove lun_db 2018-01-09 13:56:00 -05:00
port.c scsi: remove port from scsi_dev dynamically 2017-10-12 15:46:14 -04:00
scsi_bdev.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
scsi_internal.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
scsi_rpc.c rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
scsi.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
task.c scsi: Change spdk_scsi_task_alloc/free_data() from public to private 2018-06-06 17:09:22 +00:00