numam-spdk/test
Shuhei Matsumoto 64a268e2e1 iscsi: Fix double dequeue of the primary write task in error handling
By running random, 64KB, 70% write, and 30% read workload and periodical
TCP disconnection from the initiator, segmentation fault have occurred.

By investigation, when the last write task completed and dequeued
the primary write task in spdk_iscsi_task_cpl(), the primary write task
was already dequeued in spdk_clear_all_transfer_task().

This patch dequeues all primary write tasks after all outstanding
tasks complete.

After starting to exit the connection, the connection will not receive
any command. Hence waiting for completion of all pending tasks first will
avoid double dequeue safely.

Change-Id: I8e2b6b756be3a6e096675acc81cdb93fb6a7e350
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/430397
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-10-23 17:58:52 +00:00
..
app make: simplify rdma dependency linking 2018-09-14 22:56:46 +00:00
bdev test/bdev: remove memory restrictions from bdevio 2018-10-22 22:33:13 +00:00
blobfs scripts: use python3 in all scripts 2018-09-14 22:24:30 +00:00
blobstore blobstore: Add tests for bdev_blob_queue_io in blobstore 2018-09-18 16:38:49 +00:00
common test: remove -g from discover_bdevs call. 2018-10-22 22:33:13 +00:00
config_converter scripts: add config converter 2018-09-18 15:24:40 +00:00
cpp_headers
env memory: register each hotplugged page separately 2018-10-11 18:59:11 +00:00
event test/event_perf: use less memory 2018-07-26 05:28:52 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test/iscsi: exclude *.o from ext4test.sh rsync 2018-10-15 22:20:17 +00:00
json_config Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
lvol Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
nvme mk: introduce ldflags print target 2018-10-16 12:40:43 +00:00
nvmf test/nvmf: Delete unneeded references to start_subsystem_init 2018-10-22 22:33:13 +00:00
pmem Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
rpc_client jsonrpc_client: make ID and method optional when starting request 2018-10-18 16:07:37 +00:00
spdkcli test/spdkcli: Add load and save config commands. 2018-10-15 17:32:09 +00:00
unit iscsi: Fix double dequeue of the primary write task in error handling 2018-10-23 17:58:52 +00:00
vhost test/vhost: Fix vhost live migration 2018-10-15 22:49:06 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00