Spdk/test/unit/lib
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
..
bdev raid_ut: initialize ch_ctx in test_multi_raid_with_io 2020-04-09 13:44:21 +00:00
blob ut/blob: disable compilation of UT for CUnit other than 2.1-3 2020-04-01 10:22:17 +00:00
blobfs lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
event lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
ftl lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
ioat ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
iscsi iscsi: Properly size the receive buffer 2020-04-08 06:42:55 +00:00
json ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
jsonrpc ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
log log: spdk_log_dump more characters than required 2020-04-14 11:34:45 +00:00
lvol ut/lvol: simplify UT by using handy CUnit macros 2020-03-31 07:57:10 +00:00
notify ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme lib/nvme: when destroying qpairs, abort queued requests. 2020-04-14 11:34:24 +00:00
nvmf lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
reduce ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
scsi lib/scsi: Merge append and execute SCSI task into a single function 2020-04-15 07:40:06 +00:00
sock ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
thread ut/thread: Test creating and destroying nested I/O channels 2020-04-09 13:44:14 +00:00
util ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
vhost unit: add vhost packed ring test 2020-04-15 03:55:59 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile test/unit: remove vhost dependency from ftl tests 2020-01-15 13:37:19 +00:00