]> asedeno.scripts.mit.edu Git - linux.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)
commitda7b66e720dcfb6754d6e3310a7ef315009b13db
tree6994fd43321b582fb4de1d542046d26354e6ec7b
parent64d63187325884b96f684f1d839ec5d5ce231b92
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