aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 20:34:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 20:34:15 -0400
commitc70b5296e775cde46cfcb2d860ba160108a5ec7a (patch)
tree30419cb982acca44499236adcca65f2f87698c74 /drivers/scsi/be2iscsi
parent80c226fbef56576946c9655fcb2ab62e63404d12 (diff)
parent58ff4bd042adf8013c8f70fd03c2c0f8d022e387 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (84 commits) [SCSI] be2iscsi: SGE Len == 64K [SCSI] be2iscsi: Remove premature free of cid [SCSI] be2iscsi: More time for FW [SCSI] libsas: fix bug for vacant phy [SCSI] sd: Fix overflow with big physical blocks [SCSI] st: add MTWEOFI to write filemarks without flushing drive buffer [SCSI] libsas: Don't issue commands to devices that have been hot-removed [SCSI] megaraid_sas: Add Online Controller Reset to MegaRAID SAS drive [SCSI] lpfc 8.3.17: Update lpfc driver version to 8.3.17 [SCSI] lpfc 8.3.17: Replace function reset methodology [SCSI] lpfc 8.3.17: SCSI fixes [SCSI] lpfc 8.3.17: BSG fixes [SCSI] lpfc 8.3.17: SLI Additions and Fixes [SCSI] lpfc 8.3.17: Code Cleanup and Locking fixes [SCSI] zfcp: Remove scsi_cmnd->serial_number from debug traces [SCSI] ipr: fix array error logging [SCSI] aha152x: enable PCMCIA on 64bit [SCSI] scsi_dh_alua: Handle all states correctly [SCSI] cxgb4i: connection and ddp setting update [SCSI] cxgb3i: fixed connection over vlan ...
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.c2
-rw-r--r--drivers/scsi/be2iscsi/be_iscsi.c3
-rw-r--r--drivers/scsi/be2iscsi/be_main.c2
3 files changed, 2 insertions, 5 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
index 7c7537335c88..ad246369d373 100644
--- a/drivers/scsi/be2iscsi/be_cmds.c
+++ b/drivers/scsi/be2iscsi/be_cmds.c
@@ -335,7 +335,7 @@ static int be_mbox_db_ready_wait(struct be_ctrl_info *ctrl)
335 if (ready) 335 if (ready)
336 break; 336 break;
337 337
338 if (cnt > 6000000) { 338 if (cnt > 12000000) {
339 dev_err(&ctrl->pdev->dev, "mbox_db poll timed out\n"); 339 dev_err(&ctrl->pdev->dev, "mbox_db poll timed out\n");
340 return -EBUSY; 340 return -EBUSY;
341 } 341 }
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c
index 7f11f3e48e12..eaaa8813067d 100644
--- a/drivers/scsi/be2iscsi/be_iscsi.c
+++ b/drivers/scsi/be2iscsi/be_iscsi.c
@@ -522,7 +522,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep,
522 if (beiscsi_ep->ep_cid > (phba->fw_config.iscsi_cid_start + 522 if (beiscsi_ep->ep_cid > (phba->fw_config.iscsi_cid_start +
523 phba->params.cxns_per_ctrl * 2)) { 523 phba->params.cxns_per_ctrl * 2)) {
524 SE_DEBUG(DBG_LVL_1, "Failed in allocate iscsi cid\n"); 524 SE_DEBUG(DBG_LVL_1, "Failed in allocate iscsi cid\n");
525 beiscsi_put_cid(phba, beiscsi_ep->ep_cid);
526 goto free_ep; 525 goto free_ep;
527 } 526 }
528 527
@@ -559,7 +558,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep,
559 SE_DEBUG(DBG_LVL_1, "mgmt_open_connection Failed" 558 SE_DEBUG(DBG_LVL_1, "mgmt_open_connection Failed"
560 " status = %d extd_status = %d\n", 559 " status = %d extd_status = %d\n",
561 status, extd_status); 560 status, extd_status);
562 beiscsi_put_cid(phba, beiscsi_ep->ep_cid);
563 free_mcc_tag(&phba->ctrl, tag); 561 free_mcc_tag(&phba->ctrl, tag);
564 pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, 562 pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size,
565 nonemb_cmd.va, nonemb_cmd.dma); 563 nonemb_cmd.va, nonemb_cmd.dma);
@@ -574,7 +572,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep,
574 beiscsi_ep->cid_vld = 1; 572 beiscsi_ep->cid_vld = 1;
575 SE_DEBUG(DBG_LVL_8, "mgmt_open_connection Success\n"); 573 SE_DEBUG(DBG_LVL_8, "mgmt_open_connection Success\n");
576 } 574 }
577 beiscsi_put_cid(phba, beiscsi_ep->ep_cid);
578 pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, 575 pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size,
579 nonemb_cmd.va, nonemb_cmd.dma); 576 nonemb_cmd.va, nonemb_cmd.dma);
580 return 0; 577 return 0;
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 8220bde6c04c..75a85aa9e882 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -2040,7 +2040,7 @@ hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg,
2040 unsigned int num_sg, struct beiscsi_io_task *io_task) 2040 unsigned int num_sg, struct beiscsi_io_task *io_task)
2041{ 2041{
2042 struct iscsi_sge *psgl; 2042 struct iscsi_sge *psgl;
2043 unsigned short sg_len, index; 2043 unsigned int sg_len, index;
2044 unsigned int sge_len = 0; 2044 unsigned int sge_len = 0;
2045 unsigned long long addr; 2045 unsigned long long addr;
2046 struct scatterlist *l_sg; 2046 struct scatterlist *l_sg;