Spdk/test
Shuhei Matsumoto 19eb63fcad lib/iscsi: Stop splitting immediately when aborting SCSI read I/O
We changed read I/O submission to stop splitting when detecting LUN
hotplug very recently. We can do the same refinement for read I/O
abortion.

In _iscsi_conn_abort_queued_datain_task(), set all remaining length
to the new task and complete it immediately. We keep the code to
process the case that queued_datain_task completed but is still in
queue, but we can change its if condition to assert.

Simplify the corresponding unit tests accordingly, and set
task->scsi.transfer_len in abort_queued_datain_tasks_test() to
exercise the changed paths.

In iscsi_pdu_payload_po_scsi_read(), if task->scsi.transfer_len is not
larger than SPDK_BDEV_LARGE_BUF_MAX_SIZE, no minimum calculation is
necessary and we can substitute task->scsi.transfer_len to
task->scsi.length simply.  This change is too small to be an independent
patch and is done together.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Iea93e51b103eae141a007a0abdaf13cbe6d5287f
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476984
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
2019-12-12 14:41:41 +00:00
..
app app: Add cli options to print SPDK version 2019-11-15 18:25:31 +00:00
bdev test/blockdev: move configuration before tests. 2019-12-10 17:12:03 +00:00
blobfs test/rocksdb: convert test cases to run_test 2019-12-10 17:12:03 +00:00
blobstore test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
common test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
compress test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
config_converter rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
env env: Use rte_malloc in spdk_mem_register code path when possible 2019-12-11 11:05:10 +00:00
event test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
ftl test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
fuzz test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
ioat test/ioat: clean up timing calls. 2019-12-10 17:12:03 +00:00
iscsi_tgt test/iscsi: convert data_digests tests to run_test 2019-12-10 17:12:03 +00:00
json_config test: Shellcheck - correct rule: Expanding an array 2019-11-27 07:08:57 +00:00
lvol test/lvol: use the run_test framework directly 2019-12-10 17:12:03 +00:00
make test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
nvme test/nvme: convert tests into run_test 2019-12-10 17:12:03 +00:00
nvmf test/nvmf: convert filesystem to use run_test 2019-12-10 17:12:03 +00:00
ocf test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
openstack test/openstack: Add possibility to reinstall devstack on required branch 2019-11-07 13:22:50 +00:00
pmem test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
rpc_client test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
spdkcli test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
unit lib/iscsi: Stop splitting immediately when aborting SCSI read I/O 2019-12-12 14:41:41 +00:00
vhost test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
vmd test/vmd: convert to run_test framework 2019-12-10 17:12:03 +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