scsi: qla2xxx: Check for Register disconnect

During adapter shutdown process check for register disconnect before
proceeding to call PCI functions.

Signed-off-by: Sawan Chandak <sawan.chandak@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:
Sawan Chandak 2018-09-11 10:18:14 -07:00 committed by Martin K. Petersen
parent 8bccfe0d21
commit f99c5d294b
1 changed files with 1 additions and 0 deletions

View File

@ -1783,6 +1783,7 @@ __qla2x00_abort_all_cmds(struct qla_qpair *qp, int res)
!ha->flags.eeh_busy && !ha->flags.eeh_busy &&
(!test_bit(ABORT_ISP_ACTIVE, (!test_bit(ABORT_ISP_ACTIVE,
&vha->dpc_flags)) && &vha->dpc_flags)) &&
!qla2x00_isp_reg_stat(ha) &&
(sp->type == SRB_SCSI_CMD)) { (sp->type == SRB_SCSI_CMD)) {
/* /*
* Don't abort commands in adapter * Don't abort commands in adapter