linux_dsm_epyc7002/drivers/scsi/qla2xxx
Nicholas Bellinger 5f572526a1 qla2xxx: Fix incorrect tcm_qla2xxx_free_cmd use during TMR ABORT
This patch drops two incorrect usages of tcm_qla2xxx_free_cmd()
during TMR ABORT within tcm_qla2xxx_handle_data_work() and
tcm_qla2xxx_aborted_task(), which where attempting to dispatch
into workqueue context to do tcm_qla2xxx_complete_free() and
subsequently invoke transport_generic_free_cmd().

This is incorrect because during TMR ABORT target-core will
drop the outstanding se_cmd->cmd_kref references once it has
quiesced the se_cmd via transport_wait_for_tasks(), and in
the case of qla2xxx it should not attempt to do it's own
transport_generic_free_cmd() once the abort has occured.

As reported by Pascal, this was originally manifesting as a
BUG_ON(cmd->cmd_in_wq) in qlt_free_cmd() during TMR ABORT,
with a LIO backend that had sufficently high enough WRITE
latency to trigger a host side TMR ABORT_TASK.

In addition, for the case in tcm_qla2xxx_write_pending_status()
and tcm_qla2xxx_handle_data_work() that waits for outstanding
FCP WRITE data transfer to complete before preceeding with a
TMR ABORT, avoid se_cmd->t_transport_stop_comp that is already
used by transport_wait_for_tasks() and use a qla2xxx internal
struct completion instead.

Reported-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Tested-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Cc: Quinn Tran <quinn.tran@cavium.com>
Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2017-07-06 23:11:35 -07:00
..
Kconfig qla2xxx: Change scsi host lookup method. 2017-03-18 17:28:37 -07:00
Makefile
qla_attr.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_bsg.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Fix ql_dump_buffer 2017-03-06 22:24:28 -05:00
qla_dbg.h qla2xxx: Improve T10-DIF/PI handling in driver. 2017-03-18 17:28:36 -07:00
qla_def.h qla2xxx: Fix delayed response to command for loop mode/direct connect. 2017-03-18 17:28:38 -07:00
qla_devtbl.h
qla_dfs.c qla2xxx: Add DebugFS node to display Port Database 2017-03-18 17:28:37 -07:00
qla_fw.h qla2xxx: Improve RSCN handling in driver 2017-02-09 00:39:02 -08:00
qla_gbl.h qla2xxx: Change scsi host lookup method. 2017-03-18 17:28:37 -07:00
qla_gs.c scsi: qla2xxx: Fix typo in driver 2017-04-04 20:13:57 -04:00
qla_init.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_inline.h qla2xxx: Simplify usage of SRB structure in driver 2017-02-09 00:39:03 -08:00
qla_iocb.c qla2xxx: Improve T10-DIF/PI handling in driver. 2017-03-18 17:28:36 -07:00
qla_isr.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_mbx.c qla2xxx: Fix delayed response to command for loop mode/direct connect. 2017-03-18 17:28:38 -07:00
qla_mid.c qla2xxx: Allow vref count to timeout on vport delete. 2017-03-18 17:27:56 -07:00
qla_mr.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2017-03-02 14:52:05 -08:00
qla_mr.h
qla_nx2.c qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx2.h qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx.c qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx.h qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_os.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_settings.h
qla_sup.c
qla_target.c qla2xxx: Fix incorrect tcm_qla2xxx_free_cmd use during TMR ABORT 2017-07-06 23:11:35 -07:00
qla_target.h qla2xxx: Fix incorrect tcm_qla2xxx_free_cmd use during TMR ABORT 2017-07-06 23:11:35 -07:00
qla_tmpl.c qla2xxx: Include ATIO queue in firmware dump when in target mode 2017-01-17 11:26:53 -08:00
qla_tmpl.h
qla_version.h qla2xxx: Update driver version to 9.00.00.00-k 2017-03-18 17:28:38 -07:00
tcm_qla2xxx.c qla2xxx: Fix incorrect tcm_qla2xxx_free_cmd use during TMR ABORT 2017-07-06 23:11:35 -07:00
tcm_qla2xxx.h qla2xxx: Track I-T nexus as single fc_port struct 2017-02-08 23:34:07 -08:00