diff options
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 2a3e9e66d4ef..eef00ed139b9 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -1537,21 +1537,23 @@ mptscsih_freeChainBuffers(MPT_ADAPTER *ioc, int req_idx) | |||
1537 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | 1537 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
1538 | /** | 1538 | /** |
1539 | * mptscsih_TMHandler - Generic handler for SCSI Task Management. | 1539 | * mptscsih_TMHandler - Generic handler for SCSI Task Management. |
1540 | * Fall through to mpt_HardResetHandler if: not operational, too many | 1540 | * @hd: Pointer to MPT SCSI HOST structure |
1541 | * failed TM requests or handshake failure. | ||
1542 | * | ||
1543 | * @ioc: Pointer to MPT_ADAPTER structure | ||
1544 | * @type: Task Management type | 1541 | * @type: Task Management type |
1542 | * @channel: channel number for task management | ||
1545 | * @id: Logical Target ID for reset (if appropriate) | 1543 | * @id: Logical Target ID for reset (if appropriate) |
1546 | * @lun: Logical Unit for reset (if appropriate) | 1544 | * @lun: Logical Unit for reset (if appropriate) |
1547 | * @ctx2abort: Context for the task to be aborted (if appropriate) | 1545 | * @ctx2abort: Context for the task to be aborted (if appropriate) |
1546 | * @timeout: timeout for task management control | ||
1547 | * | ||
1548 | * Fall through to mpt_HardResetHandler if: not operational, too many | ||
1549 | * failed TM requests or handshake failure. | ||
1548 | * | 1550 | * |
1549 | * Remark: Currently invoked from a non-interrupt thread (_bh). | 1551 | * Remark: Currently invoked from a non-interrupt thread (_bh). |
1550 | * | 1552 | * |
1551 | * Remark: With old EH code, at most 1 SCSI TaskMgmt function per IOC | 1553 | * Remark: With old EH code, at most 1 SCSI TaskMgmt function per IOC |
1552 | * will be active. | 1554 | * will be active. |
1553 | * | 1555 | * |
1554 | * Returns 0 for SUCCESS, or FAILED. | 1556 | * Returns 0 for SUCCESS, or %FAILED. |
1555 | **/ | 1557 | **/ |
1556 | int | 1558 | int |
1557 | mptscsih_TMHandler(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, int lun, int ctx2abort, ulong timeout) | 1559 | mptscsih_TMHandler(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, int lun, int ctx2abort, ulong timeout) |
@@ -1650,9 +1652,11 @@ mptscsih_TMHandler(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, int lun, int c | |||
1650 | * mptscsih_IssueTaskMgmt - Generic send Task Management function. | 1652 | * mptscsih_IssueTaskMgmt - Generic send Task Management function. |
1651 | * @hd: Pointer to MPT_SCSI_HOST structure | 1653 | * @hd: Pointer to MPT_SCSI_HOST structure |
1652 | * @type: Task Management type | 1654 | * @type: Task Management type |
1655 | * @channel: channel number for task management | ||
1653 | * @id: Logical Target ID for reset (if appropriate) | 1656 | * @id: Logical Target ID for reset (if appropriate) |
1654 | * @lun: Logical Unit for reset (if appropriate) | 1657 | * @lun: Logical Unit for reset (if appropriate) |
1655 | * @ctx2abort: Context for the task to be aborted (if appropriate) | 1658 | * @ctx2abort: Context for the task to be aborted (if appropriate) |
1659 | * @timeout: timeout for task management control | ||
1656 | * | 1660 | * |
1657 | * Remark: _HardResetHandler can be invoked from an interrupt thread (timer) | 1661 | * Remark: _HardResetHandler can be invoked from an interrupt thread (timer) |
1658 | * or a non-interrupt thread. In the former, must not call schedule(). | 1662 | * or a non-interrupt thread. In the former, must not call schedule(). |
@@ -2022,6 +2026,7 @@ mptscsih_tm_pending_wait(MPT_SCSI_HOST * hd) | |||
2022 | /** | 2026 | /** |
2023 | * mptscsih_tm_wait_for_completion - wait for completion of TM task | 2027 | * mptscsih_tm_wait_for_completion - wait for completion of TM task |
2024 | * @hd: Pointer to MPT host structure. | 2028 | * @hd: Pointer to MPT host structure. |
2029 | * @timeout: timeout value | ||
2025 | * | 2030 | * |
2026 | * Returns {SUCCESS,FAILED}. | 2031 | * Returns {SUCCESS,FAILED}. |
2027 | */ | 2032 | */ |