]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: lock sensitive region in hisi_sas_slot_abort()
authorJohn Garry <john.garry@huawei.com>
Tue, 3 Jan 2017 12:24:50 +0000 (20:24 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 23:24:11 +0000 (18:24 -0500)
commit917fd0265b6152dcf65f4ad5580c3401a919e1e4
tree6994fd43321b582fb4de1d542046d26354e6ec7b
parentcb000fb16d409cb2f63122f047687182efd91de7
scsi: hisi_sas: lock sensitive region in hisi_sas_slot_abort()

When we call hisi_sas_slot_task_free() we should grab the hisi_hba.lock,
as hisi_sas_slot_task_free() accesses common hisi_hba elements.
Function hisi_sas_slot_abort() is missing this, so add it.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c