Spdk/test
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
..
app app: add missing spdk_app_fini call 2018-07-02 03:28:11 +00:00
bdev bdevperf: fix the reset testing failure issue. 2018-07-17 01:30:40 +00:00
blobfs build: add sock dependency for all NVMe lib users 2018-06-22 17:09:57 +00:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test: add SPDK_TEST_NVME_CLI autotest flag 2018-07-10 23:18:27 +00:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env env_dpdk: fix mem_map translation for sizes >2MB 2018-07-06 22:36:22 +00:00
event thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test/json: Tests for iscsi subsystems. 2018-07-17 17:42:06 +00:00
json_config test/json: Tests for iscsi subsystems. 2018-07-17 17:42:06 +00:00
lvol pkgdep: support pycodestyle in check_format.sh 2018-06-22 18:03:31 +00:00
nvme test: remove more sys_sgsw dependencies from test scripts 2018-07-02 21:32:39 +00:00
nvmf test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
pmem test/json: Add pmem bdev test 2018-07-05 19:09:56 +00:00
unit scsi: Enforce to open LUN and then alloc IO channel by using descriptor 2018-07-17 17:43:28 +00:00
vhost test/vhost: add script for performance benchmarking 2018-07-13 22:33:19 +00:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00