Spdk/test
Shuhei Matsumoto 799e0a84af lib/scsi: Merge append and execute SCSI task into a single function
Both for SCSI IO task and management task, append and execute
operations bad bbeen separated into different functions.

Append operation was for LUN reset, and separating into two different
functions was for clarification and readability.

LUN reset is sufficiently stable now.

Merging append and execute SCSI task into a single function is good
as API and enables us to do optimization.

For SCSI management task, merge spdk_scsi_lun_append_mgmt_task into
spdk_scsi_lun_execute_mgmt_task() simply.

For SCSI IO task, merge spdk_scsi_lun_append_task into
spdk_scsi_lun_execute_task() and do a small optimization.
The refined spdk_scsi_lun_execute_task() adds the IO task to the
pending list if there is any pending management task, executes all
existing penging IO tasks first and then the IO task if there is any
pending IO task, or executes the IO task directly otherwise.

Update unit test accordingly.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I26ffc4f4f62747d8cdecb90690f26cd58a9c17f7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1817
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-04-15 07:40:06 +00:00
..
app lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
bdev lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
blobfs test/blobfs: rocksdb building error with gcc9 2020-04-06 07:48:25 +00:00
blobstore examples/blob: skip '\0' when dump xattr's value 2020-04-09 08:08:07 +00:00
common autotest_common: move config_params to a function. 2020-04-15 07:39:00 +00:00
compress test/compress: enable multi-thread on single compress bdev 2020-03-31 07:56:28 +00:00
config_converter test/config_converter: Declare $rootdir, $testdir paths 2020-02-20 09:54:15 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dpdk_memory_utility test: add test to validate dpdk mem utility 2020-01-24 05:46:43 +00:00
env pci_ut: Add the simple bdf parse test. 2020-04-01 10:22:12 +00:00
event lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
ftl test/ftl: Drop .ini config in favor of json 2020-04-10 07:08:43 +00:00
fuzz test: add autotest of fuzz_iscsi 2020-03-31 07:59:03 +00:00
ioat test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
iscsi_tgt autotest_common: move config_params to a function. 2020-04-15 07:39:00 +00:00
json_config subsystem/accel: add entry point for .write_config_json 2020-02-18 08:05:34 +00:00
lvol test/lvol: Add function to handle output from simple jq queries 2020-04-10 07:56:21 +00:00
make autotest_common: move config_params to a function. 2020-04-15 07:39:00 +00:00
nvme test/nvme_perf: Drop .ini config in favor of json 2020-04-08 06:44:22 +00:00
nvmf test/nvmf: Don't inherit last exit status from errexit 2020-04-15 07:37:25 +00:00
ocf test/ocf: factor out common functions 2020-04-14 11:35:17 +00:00
openstack test/openstack: Change http to https for cirros server. 2020-04-15 07:37:25 +00:00
pmem script: update pmem test script 2020-02-12 12:07:30 +00:00
rpc scripts/rpc.py: add daemon mode 2020-03-11 11:35:03 +00:00
rpc_client lib/event: fix printing non-null-terminated strings 2020-04-06 07:48:37 +00:00
spdkcli test/spdkcli/tcp: use socat for listening for RPC on a TCP port 2020-04-06 07:48:43 +00:00
unit lib/scsi: Merge append and execute SCSI task into a single function 2020-04-15 07:40:06 +00:00
vhost test/vhost_perf: Drop .ini config in favor of json 2020-04-08 06:44:22 +00:00
vmd fio: Remove hardcoded path to fio repo 2020-03-17 14:44:20 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00