On Fri, 2020-03-27 at 17:47 +0100, mwilck@xxxxxxxx wrote: > From: Martin Wilck <mwilck@xxxxxxxx> > > Since commit 45235022da99 ("scsi: qla2xxx: Fix driver unload by > shutting > down chip"), it is possible that FC commands are scheduled after the > adapter firmware has been shut down. IO sent to the firmware in this > situation may hang. Only certain mailbox commands should be sent in > this situation. > > This patch identifies the mailbox commands sent during adapter > initialization (before QLA_FW_STARTED() is called) and allows only > these to be sent to the firmware in stopped state. > > Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> > --- > drivers/scsi/qla2xxx/qla_mbx.c | 46 > ++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) Testing with different HW revealed that the list of allowed commands needs to be extended. Forget this patch for now, please. Regards Martin