numam-spdk/lib/iscsi
Shuhei Matsumoto 92b28effd4 lib/iscsi: Abort queued R2T task before submitting abort request to SCSI layer
Previously iscsi_del_transfer_task() and iscsi_clear_all_transfer_task()
were called after SCSI layer completed abort request.

However, SCSI layer waits until all target requests are aborted or
completed anyway.

So the timing to call iscsi_del_transfer_task() and
iscsi_clear_all_transfer_task() were not effective.

Hence for ABORT TASK, call iscsi_del_transfer_task() before
iscsi_op_abort_task(), for ABORT TASK SET and LUN RESET, call
iscsi_clear_all_transfer_task() before iscsi_op_abort_task_set().

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I7c22b7305499e6e7d7335b7b5616a3abac0252c4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3149
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-08-07 15:06:34 +00:00
..
conn.c lib/iscsi: Change the order of executing iscsi_clear_all_transfer_task 2020-07-15 07:09:24 +00:00
conn.h lib/iscsi: Unify outstanding_r2t_tasks array and active_r2t_tasks list into the latter 2020-07-13 08:39:50 +00:00
init_grp.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in init_grp.h 2020-04-20 07:38:29 +00:00
init_grp.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in init_grp.h 2020-04-20 07:38:29 +00:00
iscsi_rpc.c lib/iscsi: Rename link pointer to pg->connections from link to pg_link 2020-07-13 08:39:50 +00:00
iscsi_subsystem.c lib/iscsi: Rename link pointer to pg->connections from link to pg_link 2020-07-13 08:39:50 +00:00
iscsi.c lib/iscsi: Abort queued R2T task before submitting abort request to SCSI layer 2020-08-07 15:06:34 +00:00
iscsi.h lib/iscsi: Remove inclusion of SPDK event library except shared memory ID for iSCSI top application 2020-06-01 09:20:41 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
md5.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
md5.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
param.c iscsi: Add DataSequenceInOrder in discovery_ignored_param 2020-06-11 19:51:04 +00:00
param.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in param.h 2020-04-20 07:38:29 +00:00
portal_grp.c lib/iscsi: Remove inclusion of SPDK event library except shared memory ID for iSCSI top application 2020-06-01 09:20:41 +00:00
portal_grp.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in portal_grp.h 2020-04-20 07:38:29 +00:00
spdk_iscsi.map lib/iscsi: add a map file 2020-04-24 07:06:52 +00:00
task.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in task.h 2020-04-20 07:38:29 +00:00
task.h lib/iscsi: Replace the "spdk_" prefix by "iscsi_" for internal APIs declared in iscsi.h 2020-04-20 07:38:29 +00:00
tgt_node.c iscsi: report that long text responses isn't supported 2020-07-22 12:21:48 +00:00
tgt_node.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in tgt_node.h 2020-04-20 07:38:29 +00:00