1. 25 8月, 2020 2 次提交
  2. 20 5月, 2020 4 次提交
  3. 08 5月, 2020 1 次提交
    • V
      scsi: qla2xxx: Fix failure message in qlt_disable_vha() · 6b3d16f9
      Viacheslav Dubeyko 提交于
      The following sequence of commands result in an incorrect failure message
      being printed:
      
      echo 0x7fffffff > /sys/module/qla2xxx/parameters/logging
      modprobe target_core_mod
      modprobe tcm_qla2xxx
      mkdir /sys/kernel/config/target/qla2xxx
      mkdir /sys/kernel/config/target/qla2xxx/<port-name>
      mkdir /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1
      echo 1 > /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1/enable
      echo 0 > /sys/kernel/config/target/qla2xxx/<port-name>/tpgt_1/enable
      
      qla2xxx [0001:00:02.0]-e881:1: qla2x00_wait_for_hba_online() failed
      
      The reason of this message is the QLA_FUNCTION_FAILED code that
      qla2x00_wait_for_hba_online() returns. However, qlt_disable_vha() expects
      that adapter is offlined and QLA_FUNCTION_FAILED informs about the offline
      state of the adapter.
      
      The qla2x00_abort_isp() function finishes the execution at the point of
      checking the adapter's mode (for example, qla_tgt_mode_enabled()) because
      of the qlt_disable_vha() calls qlt_clear_mode() method. It means that
      qla2x00_abort_isp() keeps vha->flags.online is equal to zero. Finally,
      qla2x00_wait_for_hba_online() checks the state of this flag and returns
      QLA_FUNCTION_FAILED error code.
      
      This patch changes the failure message which informs about adapter's
      offline state.
      
      Link: https://lore.kernel.org/r/3cd0bbf3599c53b0c2a7184582d705d8b8052c8b.camel@yadro.comReviewed-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      Reviewed-by: NHimanshu Madhani <himanshu.madhani@oracle.com>
      Signed-off-by: NViacheslav Dubeyko <v.dubeiko@yadro.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      6b3d16f9
  4. 29 2月, 2020 2 次提交
  5. 11 2月, 2020 1 次提交
  6. 03 1月, 2020 1 次提交
  7. 22 12月, 2019 2 次提交
  8. 20 12月, 2019 2 次提交
  9. 10 12月, 2019 4 次提交
  10. 01 10月, 2019 1 次提交
  11. 24 9月, 2019 3 次提交
  12. 13 8月, 2019 15 次提交
  13. 08 8月, 2019 1 次提交
  14. 31 7月, 2019 1 次提交