Spdk/test/unit/lib
Shuhei Matsumoto 728972cdf3 scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task
By subsequent patches for iSCSI, spdk_scsi_dev_queue_mgmt_task()
will not be called directly from the function that knows TMF code,
and currently setting TMF code to SCSI task is done in
spdk_scsi_dev_queue_mgmt_task().

Hence after subsequent patches for iSCSI, to hand off TMF code to
SCSI task, any dynamic context will be required.

To avoid the dynamic context, extract setting TMF code from
spdk_scsi_dev_queue_mgmt_task() and put appropriate place for
each call of spdk_scsi_dev_queue_mgmt_task().

Additionally, in spdk_abort_transfer_task_in_task_mgmt_resp(),
ref_task_tag is got from PDU but getting it from SCSI task is
much easier. Hence get ref_task_tag from SCSI task in the callback.

Change-Id: I7add9290598d2df7cfcf1506ec75d74c70c0f236
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/436643
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-12-10 20:34:11 +00:00
..
bdev bdev/part: use spdk_bdev_part_base instead of spdk_bdev as an API param 2018-11-28 22:51:30 +00:00
blob blob: Use not C++ style comments // but C-style comments /* */ 2018-10-31 22:01:47 +00:00
blobfs test/blobfs: Simplify threading in sync unit test 2018-11-21 00:59:08 +00:00
event rpc: add function to get the current RPC state 2018-11-08 23:04:50 +00:00
ioat pci: remove ioat-specific attach functions 2018-12-07 17:24:19 +00:00
iscsi scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task 2018-12-10 20:34:11 +00:00
json json: add utilities function enabling itaration over JSON object 2018-10-18 16:07:37 +00:00
jsonrpc jsonrpc: call spdk_jsonrpc_free_request only from server thread 2018-08-13 20:01:07 +00:00
log log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
lvol test/unit: fix Scan-build errors in lvol tests. 2018-08-31 19:09:07 +00:00
nvme pci: remove nvme-specific attach functions 2018-12-07 17:24:19 +00:00
nvmf test/unit: add rdma unittest file. 2018-12-04 17:13:29 +00:00
reduce reduce: don't pass size when loading pmem file 2018-12-06 00:22:36 +00:00
scsi scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task 2018-12-10 20:34:11 +00:00
sock sock: Update the spdk_sock_getaddr function. 2018-10-11 04:58:49 +00:00
thread test/thread: Simplify thread creation 2018-12-06 18:10:55 +00:00
util bit_array: return UINT32_MAX if no cleared bits found 2018-10-08 17:03:33 +00:00
vhost vhost/nvme: add shared BAR space to enable old Guest kernel 2018-11-27 13:24:42 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile reduce: add configure option 2018-11-08 00:01:47 +00:00