linux/drivers/scsi/hisi_sas
Xiang Chen 7eee4b9218 scsi: hisi_sas: relocate smp sg map
Currently we use DQ lock to protect delivery of DQ entry one by one.

To optimise to allow more than one slot to be built for a single DQ in
parallel, we need to remove the DQ lock when preparing slots, prior to
delivery.

To achieve this, we rearrange the slot build order to ensure that once
we allocate a slot for a task, we do cannot fail to deliver the task.

In this patch, we rearrange the slot building for SMP tasks to ensure
that sg mapping part (which can fail) happens before we allocate the
slot in the DQ.

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>
2018-05-18 11:22:09 -04:00
..
hisi_sas_main.c scsi: hisi_sas: relocate smp sg map 2018-05-18 11:22:09 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: relocate smp sg map 2018-05-18 11:22:09 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: relocate smp sg map 2018-05-18 11:22:09 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: relocate smp sg map 2018-05-18 11:22:09 -04:00
hisi_sas.h scsi: hisi_sas: update PHY linkrate after a controller reset 2018-05-08 01:10:44 -04:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00