diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2011-11-18 09:02:18 -0800 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-12 14:08:15 +0400 |
commit | 8937f2f1c4bc6a9098fd71eb4a7deba5f0683118 (patch) | |
tree | cf0aae146d17b292df283edb6cbb23c27592a84f /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | c8f6544e6d831f05720687f3536d5cbc290ff181 (diff) | |
download | op-kernel-dev-8937f2f1c4bc6a9098fd71eb4a7deba5f0683118.zip op-kernel-dev-8937f2f1c4bc6a9098fd71eb4a7deba5f0683118.tar.gz |
[SCSI] qla2xxx: Clear mailbox busy flag during premature mailbox completion for ISP82xx.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index f965a57..6ff7c3c 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -162,6 +162,7 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) HINT_MBX_INT_PENDING) { spin_unlock_irqrestore(&ha->hardware_lock, flags); + ha->flags.mbox_busy = 0; ql_dbg(ql_dbg_mbx, base_vha, 0x1010, "Pending mailbox timeout, exiting.\n"); rval = QLA_FUNCTION_TIMEOUT; @@ -187,6 +188,7 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) HINT_MBX_INT_PENDING) { spin_unlock_irqrestore(&ha->hardware_lock, flags); + ha->flags.mbox_busy = 0; ql_dbg(ql_dbg_mbx, base_vha, 0x1012, "Pending mailbox timeout, exiting.\n"); rval = QLA_FUNCTION_TIMEOUT; |