linux_dsm_epyc7002/drivers/scsi/qla2xxx
Martin Wilck 5a263892d7 scsi: qla2xxx: check UNLOADING before posting async work
qlt_free_session_done() tries to post async PRLO / LOGO, and waits for the
completion of these async commands. If UNLOADING is set, this is doomed to
timeout, because the async logout command will never complete.

The only way to avoid waiting pointlessly is to fail posting these commands
in the first place if the driver is in UNLOADING state.  In general,
posting any command should be avoided when the driver is UNLOADING.

With this patch, "rmmod qla2xxx" completes without noticeable delay.

Link: https://lore.kernel.org/r/20200421204621.19228-3-mwilck@suse.com
Fixes: 45235022da ("scsi: qla2xxx: Fix driver unload by shutting down chip")
Acked-by: Arun Easi <aeasi@marvell.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-04-21 23:53:34 -04:00
..
Kconfig
Makefile
qla_attr.c scsi: qla2xxx: Add endianizer macro calls to fc host stats 2020-02-24 12:34:27 -05:00
qla_bsg.c scsi: qla2xxx: Return appropriate failure through BSG Interface 2020-02-28 20:32:29 -05:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Fix regression warnings 2020-04-13 13:58:18 -04:00
qla_dbg.h
qla_def.h scsi: qla2xxx: Update BPM enablement semantics. 2020-02-28 20:32:33 -05: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
qla_fw.h scsi: qla2xxx: Update BPM enablement semantics. 2020-02-28 20:32:33 -05:00
qla_gbl.h scsi: qla2xxx: Update BPM enablement semantics. 2020-02-28 20:32:33 -05: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 regression warnings 2020-04-13 13:58:18 -04:00
qla_inline.h
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 regression warnings 2020-04-13 13:58:18 -04:00
qla_mbx.c scsi: qla2xxx: Fix regression warnings 2020-04-13 13:58:18 -04: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
qla_nvme.c block-5.7-2020-04-10 2020-04-10 10:06:54 -07:00
qla_nvme.h
qla_nx2.c
qla_nx2.h
qla_nx.c
qla_nx.h
qla_os.c scsi: qla2xxx: check UNLOADING before posting async work 2020-04-21 23:53:34 -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 FCP-SCSI FC4 flag passing error 2020-02-28 20:32:28 -05:00
qla_target.h
qla_tmpl.c scsi: qla2xxx: Use endian macros to assign static fields in fwdump header 2020-02-24 12:34:29 -05: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
tcm_qla2xxx.h