scsi: hisi_sas: fix some sas_task.task_state_lock locking
authorJohn Garry <john.garry@huawei.com>
Wed, 22 Mar 2017 17:25:29 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
commit54c9dd2d26d0951891516a956893428feb9aea17
tree014a525f797ac38118bd9a1b737d0e73e7c42fbe
parent6131243acd2c3aafa041935dcef44eb8255eeb46
scsi: hisi_sas: fix some sas_task.task_state_lock locking

Some more locking needs to be added/modified for when
read-modify-writing sas_task.task_state_flags.

Note: since we can attempt to grab this lock in interrupt
      context we should use irq variant of spin_lock.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c