diff options
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_def.h')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_def.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h index 90dc621a926a..74c71af7cb5d 100644 --- a/drivers/scsi/qla4xxx/ql4_def.h +++ b/drivers/scsi/qla4xxx/ql4_def.h | |||
@@ -803,6 +803,16 @@ static inline void ql4xxx_unlock_drvr(struct scsi_qla_host *a) | |||
803 | ql4xxx_sem_unlock(a, QL4022_DRVR_SEM_MASK); | 803 | ql4xxx_sem_unlock(a, QL4022_DRVR_SEM_MASK); |
804 | } | 804 | } |
805 | 805 | ||
806 | static inline int ql4xxx_reset_active(struct scsi_qla_host *ha) | ||
807 | { | ||
808 | return test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || | ||
809 | test_bit(DPC_RESET_HA, &ha->dpc_flags) || | ||
810 | test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags) || | ||
811 | test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || | ||
812 | test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || | ||
813 | test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags); | ||
814 | |||
815 | } | ||
806 | /*---------------------------------------------------------------------------*/ | 816 | /*---------------------------------------------------------------------------*/ |
807 | 817 | ||
808 | /* Defines for qla4xxx_initialize_adapter() and qla4xxx_recover_adapter() */ | 818 | /* Defines for qla4xxx_initialize_adapter() and qla4xxx_recover_adapter() */ |