]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hisi_sas: optimise the usage of DQ locking
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 2 May 2018 15:56:24 +0000 (23:56 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 May 2018 05:10:43 +0000 (01:10 -0400)
commit24cf43612d4d851e660ac85f36cf389650c5a3ba
tree65f5b5c58c28799abf7c287ae89fa7b4197db6af
parent3e21d1cb0f9011225ed8aba29339ba27fc757524
scsi: hisi_sas: optimise the usage of DQ locking

In the DQ tasklet processing it is not necessary to take the DQ lock, as
there is no contention between adding slots to the CQ and removing slots
from the matching DQ.

In addition, since we run each DQ in a separate tasklet context, there
would be no possible contention between DQ processing running for the
same queue in parallel.

It is still necessary to take hisi_hba lock when free'ing slots.

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