scsi: hisi_sas: allocate slot buffer earlier
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 9 May 2018 15:10:47 +0000 (23:10 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 May 2018 15:22:09 +0000 (11:22 -0400)
commit3de0026dad6b8e83d8a699aef92638c50ba966f7
treebbd8ebdc5ab358990fb10b5e7b3745f50db01fbc
parenta2b3820bddfbffcfbf0e8170e77de65d8b8def98
scsi: hisi_sas: allocate slot buffer earlier

Currently we allocate the slot's memory buffer after allocating the DQ
slot.

To aid DQ lockout reduction, and allow slots to be built in parallel,
move this step (which can fail) prior to allocating the slot.

Also a stray spin_unlock_irqrestore() is removed from internal task exec
function.

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_main.c