1. 30 8月, 2019 1 次提交
  2. 08 8月, 2019 4 次提交
  3. 31 5月, 2019 1 次提交
  4. 13 4月, 2019 3 次提交
  5. 09 2月, 2019 1 次提交
    • J
      scsi: hisi_sas: Issue internal abort on all relevant queues · 795f25a3
      John Garry 提交于
      To support queue mapped to a CPU, it needs to be ensured that issuing an
      internal abort is safe, in that it is guaranteed that an internal abort is
      processed for a single IO or a device after all the relevant command(s)
      which it is attempting to abort have been processed by the controller.
      
      Currently we only deliver commands for any device on a single queue to
      solve this problem, as we know that commands issued on the same queue will
      be processed in order, and we will not have a scenario where the internal
      abort is racing against a command(s) which it is trying to abort.
      
      To enqueue commands on queue mapped to a CPU, choosing a queue for an
      command is based on the associated queue for the current CPU, so this is
      not safe for internal abort since it would definitely not be guaranteed
      that commands for the command devices are issued on the same queue.
      
      To solve this issue, we take a bludgeoning approach, and issue a separate
      internal abort on any queue(s) relevant to the command or device, in that
      we will be guaranteed that at least one of these internal aborts will be
      received last in the controller.
      
      So, for aborting a single command, we can just force the internal abort to
      be issued on the same queue as the command which we are trying to abort.
      
      For aborting all commands associated with a device, we issue a separate
      internal abort on all relevant queues. Issuing multiple internal aborts in
      this fashion would have not side affect.
      Signed-off-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NXiang Chen <chenxiang66@hisilicon.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      795f25a3
  6. 29 1月, 2019 1 次提交
  7. 19 12月, 2018 1 次提交
  8. 13 12月, 2018 2 次提交
  9. 16 11月, 2018 1 次提交
  10. 06 11月, 2018 1 次提交
    • Y
      scsi: hisi_sas: Remove set but not used variable 'dq_list' · e34ff8ed
      YueHaibing 提交于
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/scsi/hisi_sas/hisi_sas_v1_hw.c: In function 'start_delivery_v1_hw':
      drivers/scsi/hisi_sas/hisi_sas_v1_hw.c:907:20: warning:
       variable 'dq_list' set but not used [-Wunused-but-set-variable]
      
      drivers/scsi/hisi_sas/hisi_sas_v2_hw.c: In function 'start_delivery_v2_hw':
      drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:1671:20: warning:
       variable 'dq_list' set but not used [-Wunused-but-set-variable]
      
      drivers/scsi/hisi_sas/hisi_sas_v3_hw.c: In function 'start_delivery_v3_hw':
      drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:889:20: warning:
       variable 'dq_list' set but not used [-Wunused-but-set-variable]
      
      It never used since introduction in commit
      fa222db0 ("scsi: hisi_sas: Don't lock DQ for complete task sending")
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Acked-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      e34ff8ed
  11. 16 10月, 2018 1 次提交
  12. 20 7月, 2018 2 次提交
  13. 20 6月, 2018 1 次提交
  14. 29 5月, 2018 4 次提交
  15. 18 5月, 2018 3 次提交
  16. 13 3月, 2018 4 次提交
  17. 15 12月, 2017 2 次提交
  18. 02 11月, 2017 1 次提交
    • K
      scsi: sas: Convert timers to use timer_setup() · 77570eed
      Kees Cook 提交于
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. This requires adding a pointer to
      hold the timer's target task, as there isn't a link back from slow_task.
      
      Cc: John Garry <john.garry@huawei.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Jack Wang <jinpu.wang@profitbricks.com>
      Cc: lindar_liu@usish.com
      Cc: Jens Axboe <axboe@fb.com>
      Cc: Hannes Reinecke <hare@suse.com>
      Cc: Johannes Thumshirn <jthumshirn@suse.de>
      Cc: Benjamin Block <bblock@linux.vnet.ibm.com>
      Cc: Baoyou Xie <baoyou.xie@linaro.org>
      Cc: Wei Yongjun <weiyongjun1@huawei.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Acked-by: John Garry <john.garry@huawei.com> # for hisi_sas part
      Tested-by: John Garry <john.garry@huawei.com> # basic sanity test for hisi_sas
      Reviewed-by: NJack Wang <jinpu.wang@profitbricks.com>
      77570eed
  19. 25 10月, 2017 1 次提交
  20. 02 7月, 2017 1 次提交
  21. 20 6月, 2017 2 次提交
  22. 23 3月, 2017 2 次提交