]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0caabf2f30442e07cf680e039011e60029643eb3
treebbd8ebdc5ab358990fb10b5e7b3745f50db01fbc
parent4fbc80b5a37a7afc5a2b3f159aa05807538f7c51
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