1. 04 1月, 2018 18 次提交
  2. 21 12月, 2017 20 次提交
  3. 15 12月, 2017 2 次提交
    • X
      scsi: hisi_sas: add internal abort dev in some places · 2a038131
      Xiaofei Tan 提交于
      We should do internal abort dev before TMF_ABORT_TASK_SET and TMF_LU_RESET.
      Because we may only have done internal abort for single IO in the earlier part
      of SCSI EH process. Even the internal abort to the single IO, we also don't
      know whether it is successful.
      
      Besides, we should release slots of the device in hisi_sas_abort_task_set() if
      the abort is successful.
      Signed-off-by: NXiaofei Tan <tanxiaofei@huawei.com>
      Signed-off-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      2a038131
    • X
      scsi: hisi_sas: judge result of internal abort · 813709f2
      Xiaofei Tan 提交于
      Normally, hardware should ensure that internal abort timeout will never
      happen. If happen, it would be an SoC failure. What's more, HW will not
      process any other commands if an internal abort hasn't return CQ, and they
      will time out also.
      
      So, we should judge the result of internal abort in SCSI EH, if it is failed,
      we should give up to do TMF/softreset and return failure to the upper layer
      directly.
      
      This patch do following things to achieve this:
      
      1. When internal abort timeout happened, we set return value to -EIO in
         hisi_sas_internal_task_abort().
      
      2. If prep_abort() is not support, let hisi_sas_internal_task_abort() return
         TMF_RESP_FUNC_FAILED.
      
      3. If hisi_sas_internal_task_abort() return an negative number, it can be
         thought that it not executed properly or internal abort timeout. Then we
         won't do behind TMF or softreset, and return failure directly.
      Signed-off-by: NXiaofei Tan <tanxiaofei@huawei.com>
      Signed-off-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      813709f2