diff options
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_iscsi.c')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_iscsi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c index cafb888c2376..070118a8f184 100644 --- a/drivers/scsi/bnx2i/bnx2i_iscsi.c +++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c | |||
@@ -1161,9 +1161,6 @@ static int bnx2i_task_xmit(struct iscsi_task *task) | |||
1161 | struct bnx2i_cmd *cmd = task->dd_data; | 1161 | struct bnx2i_cmd *cmd = task->dd_data; |
1162 | struct iscsi_cmd *hdr = (struct iscsi_cmd *) task->hdr; | 1162 | struct iscsi_cmd *hdr = (struct iscsi_cmd *) task->hdr; |
1163 | 1163 | ||
1164 | if (!bnx2i_conn->is_bound) | ||
1165 | return -ENOTCONN; | ||
1166 | |||
1167 | /* | 1164 | /* |
1168 | * If there is no scsi_cmnd this must be a mgmt task | 1165 | * If there is no scsi_cmnd this must be a mgmt task |
1169 | */ | 1166 | */ |
@@ -1371,7 +1368,6 @@ static int bnx2i_conn_bind(struct iscsi_cls_session *cls_session, | |||
1371 | bnx2i_conn->ep = bnx2i_ep; | 1368 | bnx2i_conn->ep = bnx2i_ep; |
1372 | bnx2i_conn->iscsi_conn_cid = bnx2i_ep->ep_iscsi_cid; | 1369 | bnx2i_conn->iscsi_conn_cid = bnx2i_ep->ep_iscsi_cid; |
1373 | bnx2i_conn->fw_cid = bnx2i_ep->ep_cid; | 1370 | bnx2i_conn->fw_cid = bnx2i_ep->ep_cid; |
1374 | bnx2i_conn->is_bound = 1; | ||
1375 | 1371 | ||
1376 | ret_code = bnx2i_bind_conn_to_iscsi_cid(hba, bnx2i_conn, | 1372 | ret_code = bnx2i_bind_conn_to_iscsi_cid(hba, bnx2i_conn, |
1377 | bnx2i_ep->ep_iscsi_cid); | 1373 | bnx2i_ep->ep_iscsi_cid); |
@@ -1896,9 +1892,7 @@ static void bnx2i_ep_disconnect(struct iscsi_endpoint *ep) | |||
1896 | conn = bnx2i_conn->cls_conn->dd_data; | 1892 | conn = bnx2i_conn->cls_conn->dd_data; |
1897 | session = conn->session; | 1893 | session = conn->session; |
1898 | 1894 | ||
1899 | spin_lock_bh(&session->lock); | 1895 | iscsi_suspend_queue(conn); |
1900 | bnx2i_conn->is_bound = 0; | ||
1901 | spin_unlock_bh(&session->lock); | ||
1902 | } | 1896 | } |
1903 | 1897 | ||
1904 | hba = bnx2i_ep->hba; | 1898 | hba = bnx2i_ep->hba; |
@@ -2034,7 +2028,7 @@ struct iscsi_transport bnx2i_iscsi_transport = { | |||
2034 | ISCSI_USERNAME | ISCSI_PASSWORD | | 2028 | ISCSI_USERNAME | ISCSI_PASSWORD | |
2035 | ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN | | 2029 | ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN | |
2036 | ISCSI_FAST_ABORT | ISCSI_ABORT_TMO | | 2030 | ISCSI_FAST_ABORT | ISCSI_ABORT_TMO | |
2037 | ISCSI_LU_RESET_TMO | | 2031 | ISCSI_LU_RESET_TMO | ISCSI_TGT_RESET_TMO | |
2038 | ISCSI_PING_TMO | ISCSI_RECV_TMO | | 2032 | ISCSI_PING_TMO | ISCSI_RECV_TMO | |
2039 | ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME, | 2033 | ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME, |
2040 | .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_NETDEV_NAME, | 2034 | .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_NETDEV_NAME, |