linux_dsm_epyc7002/drivers/scsi/qla2xxx
Viacheslav Dubeyko 6b3d16f987 scsi: qla2xxx: Fix failure message in qlt_disable_vha()
The following sequence of commands result in an incorrect failure message
being printed:

echo 0x7fffffff > /sys/module/qla2xxx/parameters/logging
modprobe target_core_mod
modprobe tcm_qla2xxx
mkdir /sys/kernel/config/target/qla2xxx
mkdir /sys/kernel/config/target/qla2xxx/<port-name>
mkdir /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1
echo 1 > /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1/enable
echo 0 > /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1/enable

qla2xxx [0001:00:02.0]-e881:1: qla2x00_wait_for_hba_online() failed

The reason of this message is the QLA_FUNCTION_FAILED code that
qla2x00_wait_for_hba_online() returns. However, qlt_disable_vha() expects
that adapter is offlined and QLA_FUNCTION_FAILED informs about the offline
state of the adapter.

The qla2x00_abort_isp() function finishes the execution at the point of
checking the adapter's mode (for example, qla_tgt_mode_enabled()) because
of the qlt_disable_vha() calls qlt_clear_mode() method. It means that
qla2x00_abort_isp() keeps vha->flags.online is equal to zero. Finally,
qla2x00_wait_for_hba_online() checks the state of this flag and returns
QLA_FUNCTION_FAILED error code.

This patch changes the failure message which informs about adapter's
offline state.

Link: https://lore.kernel.org/r/3cd0bbf3599c53b0c2a7184582d705d8b8052c8b.camel@yadro.com
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Viacheslav Dubeyko <v.dubeiko@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-05-07 21:31:42 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
qla_attr.c scsi: qla2xxx: Fix MPI failure AEN (8200) handling 2020-04-24 12:15:47 -04:00
qla_bsg.c scsi: qla2xxx: Return appropriate failure through BSG Interface 2020-02-28 20:32:29 -05: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: Use ARRAY_SIZE() instead of open-coding it 2020-04-14 21:31:00 -04:00
qla_dbg.h scsi: qla2xxx: Fix unbound NVME response length 2020-01-30 10:31:47 -05:00
qla_def.h scsi: qla2xxx: make 1-bit bit-fields unsigned int 2020-04-29 22:10:40 -04:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: fix FW resource count values 2020-02-28 20:32:31 -05:00
qla_dsd.h scsi: qla2xxx: Include the <asm/unaligned.h> header file from qla_dsd.h 2019-08-12 21:34:04 -04:00
qla_fw.h scsi: qla2xxx: Update BPM enablement semantics. 2020-02-28 20:32:33 -05:00
qla_gbl.h scsi: qla2xxx: Fix MPI failure AEN (8200) handling 2020-04-24 12:15:47 -04:00
qla_gs.c scsi: qla2xxx: Fix FCP-SCSI FC4 flag passing error 2020-02-28 20:32:28 -05:00
qla_init.c scsi: qla2xxx: Fix MPI failure AEN (8200) handling 2020-04-24 12:15:47 -04:00
qla_inline.h scsi: qla2xxx: Add a shadow variable to hold disc_state history of fcport 2019-12-19 22:42:44 -05:00
qla_iocb.c scsi: qla2xxx: Convert MAKE_HANDLE() from a define into an inline function 2020-02-28 19:55:01 -05:00
qla_isr.c scsi: qla2xxx: Fix MPI failure AEN (8200) handling 2020-04-24 12:15:47 -04:00
qla_mbx.c scsi: qla2xxx: Set Nport ID for N2N 2020-02-28 20:32:37 -05:00
qla_mid.c scsi: qla2xxx: Use a dedicated interrupt handler for 'handshake-required' ISPs 2020-02-28 20:32:30 -05:00
qla_mr.c scsi: qla2xxx: Convert MAKE_HANDLE() from a define into an inline function 2020-02-28 19:55:01 -05:00
qla_mr.h scsi: qla2xxx: Introduce the dsd32 and dsd64 data structures 2019-04-29 17:24:51 -04:00
qla_nvme.c block-5.7-2020-04-10 2020-04-10 10:06:54 -07:00
qla_nvme.h scsi: qla2xxx: Modify NVMe include directives 2019-08-12 21:34:08 -04:00
qla_nx2.c scsi: qla2xxx: Suppress a Coveritiy complaint about integer overflow 2019-08-12 21:34:07 -04:00
qla_nx2.h scsi: qla2xxx: Remove unused symbols 2018-02-12 11:43:24 -05:00
qla_nx.c scsi: qla2xxx: Use get_unaligned_*() instead of open-coding these functions 2020-01-02 21:53:31 -05:00
qla_nx.h scsi: qla2xxx: Improve Linux kernel coding style conformance 2019-08-12 21:34:04 -04:00
qla_os.c scsi: qla2xxx: Fix warning after FC target reset 2020-05-07 21:26:23 -04:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Return appropriate failure through BSG Interface 2020-02-28 20:32:29 -05:00
qla_target.c scsi: qla2xxx: Fix failure message in qlt_disable_vha() 2020-05-07 21:31:42 -04:00
qla_target.h scsi: tcm_qla2xxx: Make qlt_alloc_qfull_cmd() set cmd->se_cmd.map_tag 2020-02-10 22:46:54 -05:00
qla_tmpl.c scsi: qla2xxx: Fix MPI failure AEN (8200) handling 2020-04-24 12:15:47 -04:00
qla_tmpl.h scsi: qla2xxx: Fix sparse warning reported by kbuild bot 2020-02-28 19:49:00 -05:00
qla_version.h scsi: qla2xxx: Update driver version to 10.01.00.25-k 2020-02-28 20:32:37 -05:00
tcm_qla2xxx.c scsi: tcm_qla2xxx: Make qlt_alloc_qfull_cmd() set cmd->se_cmd.map_tag 2020-02-10 22:46:54 -05:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00