Spdk/lib/iscsi
Jim Harris 5343c22f8d iscsi: do not free io channel refs if login failed
When destroying a connection, we need to check if we got to
full feature phase before freeing any io channels.  This is because
the io channels are only allocated as part of a successful login.

The Calsoft iSCSI test suite has tests which will fail login.
Since the test system was just using a malloc backend with memcpy,
so even though a channel was NULL in some cases, it was never used
since the memcpy engine doesn't need it.

This prepares for some future patches which extend the use
of io channels in the bdev layer.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I2fb7b18a781caa0aadca319aa1e61a6ccf2c55fd
2017-05-03 14:44:39 -07:00
..
acceptor.c env: Move lcore functions into env layer. 2017-04-04 09:19:01 -07:00
acceptor.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
conn.c iscsi: do not free io channel refs if login failed 2017-05-03 14:44:39 -07:00
conn.h scripts/check_format.sh: check spaces in comments 2017-04-24 13:37:41 -07:00
crc32c.c iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
crc32c.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
init_grp.c log: split internal TRACELOG macro into new header 2016-11-16 13:33:51 -07:00
init_grp.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
iscsi_rpc.c scsi: make spdk_scsi_dev definition private 2017-05-03 12:34:57 -07:00
iscsi_subsystem.c scsi: make spdk_scsi_dev definition private 2017-05-03 12:34:57 -07:00
iscsi.c scsi: make spdk_scsi_dev definition private 2017-05-03 12:34:57 -07:00
iscsi.h scripts/check_format.sh: catch misaligned comments 2017-04-26 06:39:58 -07:00
Makefile env: Make the environment library configurable. 2016-10-05 11:51:37 -07:00
md5.c Fix some cppcheck errors on lib/iscsi & lib/scsi. (#41) 2016-09-28 13:55:56 -07:00
md5.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
param.c scripts/check_format.sh: check spaces in comments 2017-04-24 13:37:41 -07:00
param.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
portal_grp.c iscsi: dont create portal group from partially invalid portal list 2017-04-03 13:28:42 -07:00
portal_grp.h iscsi: fixed crash on invalid add_portal_group call 2017-03-27 15:19:38 -07:00
task.c Replace rte_panic() with abort() 2016-11-08 08:57:49 -07:00
task.h scripts/check_format.sh: check spaces in comments 2017-04-24 13:37:41 -07:00
tgt_node.c scsi: make spdk_scsi_dev definition private 2017-05-03 12:34:57 -07:00
tgt_node.h scripts/check_format.sh: catch misaligned comments 2017-04-26 06:39:58 -07:00