1. 18 5月, 2018 1 次提交
  2. 08 5月, 2018 5 次提交
  3. 19 4月, 2018 4 次提交
  4. 13 3月, 2018 5 次提交
  5. 23 1月, 2018 2 次提交
  6. 17 1月, 2018 1 次提交
  7. 11 1月, 2018 1 次提交
  8. 09 1月, 2018 1 次提交
  9. 21 12月, 2017 3 次提交
  10. 15 12月, 2017 12 次提交
  11. 22 11月, 2017 1 次提交
    • K
      treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts · 841b86f3
      Kees Cook 提交于
      With all callbacks converted, and the timer callback prototype
      switched over, the TIMER_FUNC_TYPE cast is no longer needed,
      so remove it. Conversion was done with the following scripts:
      
          perl -pi -e 's|\(TIMER_FUNC_TYPE\)||g' \
              $(git grep TIMER_FUNC_TYPE | cut -d: -f1 | sort -u)
      
          perl -pi -e 's|\(TIMER_DATA_TYPE\)||g' \
              $(git grep TIMER_DATA_TYPE | cut -d: -f1 | sort -u)
      
      The now unused macros are also dropped from include/linux/timer.h.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      841b86f3
  12. 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
  13. 01 11月, 2017 2 次提交
  14. 25 10月, 2017 1 次提交
    • X
      scsi: hisi_sas: fix the risk of freeing slot twice · 6ba0fbc3
      Xiaofei Tan 提交于
      The function hisi_sas_slot_task_free() is used to free the slot and do
      tidy-up of LLDD resources. The LLDD generally should know the state of
      a slot and decide when to free it, and it should only be done once.
      
      For some scenarios, we really don't know the state, like when TMF
      timeout. In this case, we check task->lldd_task before calling
      hisi_sas_slot_task_free().
      
      However, we may miss some scenarios when we should also check
      task->lldd_task, and it is not SMP safe to check task->lldd_task as we
      don't protect it within spin lock.
      
      This patch is to fix this risk of freeing slot twice, as follows:
      
        1. Check task->lldd_task in the hisi_sas_slot_task_free(), and give
           up freeing of this time if task->lldd_task is NULL.
      
        2. Set slot->buf to NULL after it is freed.
      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>
      6ba0fbc3