Spdk/test/unit/lib/scsi
Shuhei Matsumoto fec7c88e45 scsi: Enforce to open LUN and then alloc IO channel by using descriptor
Use a descriptor got by opening the LUN to allocate IO channel of the LUN.
This requires opening the LUN is done before allocating IO channel of the
LUN.

Use the descriptor to free IO channel of the LUN too.

Additionally, assert is added to the close LUN function to check if
IO channel is freed before the last close LUN function is called.

Change-Id: Iafb2f9ce790fff25801ea45b3286f3e26943807b
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/417807
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-07-17 17:43:28 +00:00
..
dev.c scsi: Enforce to open LUN and then alloc IO channel by using descriptor 2018-07-17 17:43:28 +00:00
lun.c scsi: spdk_bdev_scsi_reset() now returns void 2018-07-10 21:17:38 +00:00
scsi_bdev.c scsi/bdev: use spdk_bdev_queue_io_wait() 2018-07-10 21:17:38 +00: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