diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2012-02-09 14:15:45 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 09:20:27 -0500 |
commit | 7f45dd0b3d39aee114b969a2bf84ac883b2cd196 (patch) | |
tree | 68b1a00678943e9d4ced26ef5654d37481a6b536 /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | b7bfbe12dc7223096005338a3099b2eec685bc30 (diff) |
[SCSI] qla2xxx: Reduce mbx-command timeout for Login/Logout requests.
Don't use default 30 second mailbox-command timeout for these
serial requests, instead, limit the TMO to the standard 2*RATOV
plus some fudge-factor.
Signed-off-by: Andrew Vasquez <andrew.vasquez@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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 61e2fb75fbf0..5470177a1ee1 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -1643,7 +1643,8 @@ qla24xx_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, | |||
1643 | lg->port_id[1] = area; | 1643 | lg->port_id[1] = area; |
1644 | lg->port_id[2] = domain; | 1644 | lg->port_id[2] = domain; |
1645 | lg->vp_index = vha->vp_idx; | 1645 | lg->vp_index = vha->vp_idx; |
1646 | rval = qla2x00_issue_iocb(vha, lg, lg_dma, 0); | 1646 | rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, |
1647 | (ha->r_a_tov / 10 * 2) + 2); | ||
1647 | if (rval != QLA_SUCCESS) { | 1648 | if (rval != QLA_SUCCESS) { |
1648 | ql_dbg(ql_dbg_mbx, vha, 0x1063, | 1649 | ql_dbg(ql_dbg_mbx, vha, 0x1063, |
1649 | "Failed to issue login IOCB (%x).\n", rval); | 1650 | "Failed to issue login IOCB (%x).\n", rval); |
@@ -1906,8 +1907,8 @@ qla24xx_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, | |||
1906 | lg->port_id[1] = area; | 1907 | lg->port_id[1] = area; |
1907 | lg->port_id[2] = domain; | 1908 | lg->port_id[2] = domain; |
1908 | lg->vp_index = vha->vp_idx; | 1909 | lg->vp_index = vha->vp_idx; |
1909 | 1910 | rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, | |
1910 | rval = qla2x00_issue_iocb(vha, lg, lg_dma, 0); | 1911 | (ha->r_a_tov / 10 * 2) + 2); |
1911 | if (rval != QLA_SUCCESS) { | 1912 | if (rval != QLA_SUCCESS) { |
1912 | ql_dbg(ql_dbg_mbx, vha, 0x106f, | 1913 | ql_dbg(ql_dbg_mbx, vha, 0x106f, |
1913 | "Failed to issue logout IOCB (%x).\n", rval); | 1914 | "Failed to issue logout IOCB (%x).\n", rval); |