OpenCloudOS-Kernel/drivers/scsi/qla2xxx
Quinn Tran 2137490f21 scsi: qla2xxx: Fix device staying in blocked state
This patch fixes issue reported by some of the customers, who discovered
that after cable pull scenario the devices disappear and path seems to
remain in blocked state. Once the device reappears, driver does not seem to
update path to online. This issue appears because of the defer flag
creating race condition where the same session reappears.  This patch fixes
this issue by indicating SCSI-ML of device lost when
qlt_free_session_done() is called from qlt_unreg_sess().

Fixes: 41dc529a46 ("qla2xxx: Improve RSCN handling in driver")
Signed-off-by: Quinn Tran <qtran@marvell.com>
Cc: stable@vger.kernel.org #4.19
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-04-29 08:13:43 -04:00
..
Kconfig scsi: qla2xxx: avoid unused-function warning 2017-07-01 17:14:58 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_attr.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_bsg.c scsi: qla2xxx: Leave a blank line after declarations 2019-04-15 22:04:39 -04:00
qla_bsg.h scsi: qla2xxx: Add 28xx flash primary/secondary status/image mechanism 2019-03-19 12:22:55 -04:00
qla_dbg.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_dbg.h scsi: qla2xxx: Cleanups for NVRAM/Flash read/write path 2019-03-19 12:22:54 -04:00
qla_def.h scsi: qla2xxx: Move the port_state_str[] definition from a .h to a .c file 2019-04-15 22:04:40 -04:00
qla_devtbl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_dfs.c scsi: qla2xxx: Leave a blank line after declarations 2019-04-15 22:04:39 -04:00
qla_fw.h scsi: qla2xxx: Secure flash update support for ISP28XX 2019-03-19 12:22:55 -04:00
qla_gbl.h scsi: qla2xxx: Move qla2x00_set_fcport_state() from a .h into a .c file 2019-04-15 22:04:40 -04:00
qla_gs.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_init.c scsi: qla2xxx: Fix read offset in qla24xx_load_risc_flash() 2019-04-15 22:08:04 -04:00
qla_inline.h scsi: qla2xxx: Move qla2x00_set_fcport_state() from a .h into a .c file 2019-04-15 22:04:40 -04:00
qla_iocb.c scsi: qla2xxx: Declare qla24xx_build_scsi_crc_2_iocbs() static 2019-04-15 22:04:40 -04:00
qla_isr.c scsi: qla2xxx: Move the port_state_str[] definition from a .h to a .c file 2019-04-15 22:04:40 -04:00
qla_mbx.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_mid.c scsi: qla2xxx: Enable FC-NVME on NPIV ports 2018-12-12 20:38:13 -05:00
qla_mr.c scsi: qla2xxx: Leave a blank line after declarations 2019-04-15 22:04:39 -04:00
qla_mr.h
qla_nvme.c scsi: qla2xxx: Leave a blank line after declarations 2019-04-15 22:04:39 -04:00
qla_nvme.h scsi: qla2xxx: Add First Burst support for FC-NVMe devices 2019-02-19 18:58:35 -05:00
qla_nx.c scsi: qla2xxx: Move the <linux/io-64-nonatomic-lo-hi.h> include directive 2019-04-15 22:04:40 -04:00
qla_nx.h scsi: qla2xxx: Move the <linux/io-64-nonatomic-lo-hi.h> include directive 2019-04-15 22:04:40 -04:00
qla_nx2.c scsi: qla2xxx: Leave a blank line after declarations 2019-04-15 22:04:39 -04:00
qla_nx2.h scsi: qla2xxx: Remove unused symbols 2018-02-12 11:43:24 -05:00
qla_os.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Insert spaces where required 2019-04-15 22:04:40 -04:00
qla_target.c scsi: qla2xxx: Fix device staying in blocked state 2019-04-29 08:13:43 -04:00
qla_target.h scsi: qla2xxx: Remove qla_tgt_cmd.data_work and qla_tgt_cmd.data_work_free 2019-04-15 22:04:40 -04:00
qla_tmpl.c scsi: qla2xxx: Simplification of register address used in qla_tmpl.c 2019-03-19 12:22:55 -04:00
qla_tmpl.h scsi: qla2xxx: Correction and improvement to fwdt processing 2019-03-19 12:22:55 -04:00
qla_version.h scsi: qla2xxx: Update driver version to 10.01.00.16-k 2019-04-03 23:45:59 -04:00
tcm_qla2xxx.c scsi: qla2xxx: Remove qla_tgt_cmd.data_work and qla_tgt_cmd.data_work_free 2019-04-15 22:04:40 -04:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00