aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_isr.c
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2011-03-30 14:46:26 -0400
committerJames Bottomley <James.Bottomley@suse.de>2011-05-01 11:10:23 -0400
commit8f7daead3c7861f9d0caa55269773136ab443b41 (patch)
tree1d3dbdfce0b71551e839e848f48d35e2ef5fb253 /drivers/scsi/qla2xxx/qla_isr.c
parentaee3dbcdd1f8f7dea4500824ae1ac9cfbbe71700 (diff)
[SCSI] qla2xxx: Perform FCoE context reset before trying adapter reset for ISP82xx.
For certain failures, try to recover first by doing FCoE context reset before attempting big hammer approach(adpater reset). Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index b614c8d8f5bd..9c0f0e3389eb 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -843,7 +843,10 @@ qla2x00_process_completed_request(struct scsi_qla_host *vha,
843 qla_printk(KERN_WARNING, ha, 843 qla_printk(KERN_WARNING, ha,
844 "Invalid SCSI completion handle %d.\n", index); 844 "Invalid SCSI completion handle %d.\n", index);
845 845
846 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); 846 if (IS_QLA82XX(ha))
847 set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
848 else
849 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
847 return; 850 return;
848 } 851 }
849 852
@@ -861,7 +864,10 @@ qla2x00_process_completed_request(struct scsi_qla_host *vha,
861 qla_printk(KERN_WARNING, ha, 864 qla_printk(KERN_WARNING, ha,
862 "Invalid ISP SCSI completion handle\n"); 865 "Invalid ISP SCSI completion handle\n");
863 866
864 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); 867 if (IS_QLA82XX(ha))
868 set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
869 else
870 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
865 } 871 }
866} 872}
867 873
@@ -878,7 +884,10 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func,
878 if (index >= MAX_OUTSTANDING_COMMANDS) { 884 if (index >= MAX_OUTSTANDING_COMMANDS) {
879 qla_printk(KERN_WARNING, ha, 885 qla_printk(KERN_WARNING, ha,
880 "%s: Invalid completion handle (%x).\n", func, index); 886 "%s: Invalid completion handle (%x).\n", func, index);
881 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); 887 if (IS_QLA82XX(ha))
888 set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
889 else
890 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
882 goto done; 891 goto done;
883 } 892 }
884 sp = req->outstanding_cmds[index]; 893 sp = req->outstanding_cmds[index];
@@ -1564,7 +1573,10 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
1564 "scsi(%ld): Invalid status handle (0x%x).\n", vha->host_no, 1573 "scsi(%ld): Invalid status handle (0x%x).\n", vha->host_no,
1565 sts->handle); 1574 sts->handle);
1566 1575
1567 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); 1576 if (IS_QLA82XX(ha))
1577 set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
1578 else
1579 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
1568 qla2xxx_wake_dpc(vha); 1580 qla2xxx_wake_dpc(vha);
1569 return; 1581 return;
1570 } 1582 }
@@ -1909,13 +1921,17 @@ qla2x00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, sts_entry_t *pkt)
1909 qla2x00_sp_compl(ha, sp); 1921 qla2x00_sp_compl(ha, sp);
1910 1922
1911 } else if (pkt->entry_type == COMMAND_A64_TYPE || pkt->entry_type == 1923 } else if (pkt->entry_type == COMMAND_A64_TYPE || pkt->entry_type ==
1912 COMMAND_TYPE || pkt->entry_type == COMMAND_TYPE_7) { 1924 COMMAND_TYPE || pkt->entry_type == COMMAND_TYPE_7
1925 || pkt->entry_type == COMMAND_TYPE_6) {
1913 DEBUG2(printk("scsi(%ld): Error entry - invalid handle\n", 1926 DEBUG2(printk("scsi(%ld): Error entry - invalid handle\n",
1914 vha->host_no)); 1927 vha->host_no));
1915 qla_printk(KERN_WARNING, ha, 1928 qla_printk(KERN_WARNING, ha,
1916 "Error entry - invalid handle\n"); 1929 "Error entry - invalid handle\n");
1917 1930
1918 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); 1931 if (IS_QLA82XX(ha))
1932 set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
1933 else
1934 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
1919 qla2xxx_wake_dpc(vha); 1935 qla2xxx_wake_dpc(vha);
1920 } 1936 }
1921} 1937}