aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2010-11-23 18:29:25 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-12-21 13:24:12 -0500
commit252e44805bcfff5de2e05dd126f69a18e0b760f0 (patch)
treeb8c23590516f965f2b21af146b5eab8d9670e264 /drivers/scsi
parent94810e824df1509ad3ba401e57f74b922fd928c5 (diff)
[SCSI] bnx2i: Allow to abort the connection if connect request times out
In the situation where the connect completion response arrives after the connect request has already timed out, the connection was not being aborted but only the resource was being freed. This creates a problem for 5771X (10g) as the chip flags this with an assertion. This change will properly aborts the connection before freeing the resource. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/bnx2i/bnx2i_iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c
index 4882b00b3539..a2c9b1f2ea5c 100644
--- a/drivers/scsi/bnx2i/bnx2i_iscsi.c
+++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c
@@ -1906,13 +1906,13 @@ static int bnx2i_ep_tcp_conn_active(struct bnx2i_endpoint *bnx2i_ep)
1906 cnic_dev_10g = 1; 1906 cnic_dev_10g = 1;
1907 1907
1908 switch (bnx2i_ep->state) { 1908 switch (bnx2i_ep->state) {
1909 case EP_STATE_CONNECT_START:
1910 case EP_STATE_CONNECT_FAILED: 1909 case EP_STATE_CONNECT_FAILED:
1911 case EP_STATE_CLEANUP_FAILED: 1910 case EP_STATE_CLEANUP_FAILED:
1912 case EP_STATE_OFLD_FAILED: 1911 case EP_STATE_OFLD_FAILED:
1913 case EP_STATE_DISCONN_TIMEDOUT: 1912 case EP_STATE_DISCONN_TIMEDOUT:
1914 ret = 0; 1913 ret = 0;
1915 break; 1914 break;
1915 case EP_STATE_CONNECT_START:
1916 case EP_STATE_CONNECT_COMPL: 1916 case EP_STATE_CONNECT_COMPL:
1917 case EP_STATE_ULP_UPDATE_START: 1917 case EP_STATE_ULP_UPDATE_START:
1918 case EP_STATE_ULP_UPDATE_COMPL: 1918 case EP_STATE_ULP_UPDATE_COMPL: