scsi: qla2xxx: Move work element processing out of DPC thread
DPC thread can stall during switch scan due to slow switch response. This will stall other work element that needs attention. Moving work element processing and relogin logic out of DPC thread and into its own work queue. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
f13515acdc
commit
9b3e0f4d41
@@ -3139,6 +3139,7 @@ enum qla_work_type {
|
||||
QLA_EVT_UPD_FCPORT,
|
||||
QLA_EVT_GNL,
|
||||
QLA_EVT_NACK,
|
||||
QLA_EVT_RELOGIN,
|
||||
};
|
||||
|
||||
|
||||
@@ -3447,10 +3448,6 @@ struct qlt_hw_data {
|
||||
|
||||
#define LEAK_EXCHG_THRESH_HOLD_PERCENT 75 /* 75 percent */
|
||||
|
||||
#define QLA_EARLY_LINKUP(_ha) \
|
||||
((_ha->flags.n2n_ae || _ha->flags.lip_ae) && \
|
||||
_ha->flags.fw_started && !_ha->flags.fw_init_done)
|
||||
|
||||
/*
|
||||
* Qlogic host adapter specific data structure.
|
||||
*/
|
||||
@@ -4155,6 +4152,7 @@ typedef struct scsi_qla_host {
|
||||
#define SET_ZIO_THRESHOLD_NEEDED 28
|
||||
#define DETECT_SFP_CHANGE 29
|
||||
#define N2N_LOGIN_NEEDED 30
|
||||
#define IOCB_WORK_ACTIVE 31
|
||||
|
||||
unsigned long pci_flags;
|
||||
#define PFLG_DISCONNECTED 0 /* PCI device removed */
|
||||
|
||||
Reference in New Issue
Block a user