]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 19:13:20 +0000 (15:13 -0400)
commit3472856a2fc649aa858d5bc338821ef0532fa592
treeda168cdc0335cf1515e1f691ed86b508475e93ac
parent81d115ec9fef304ff83fa0d31dcd43b70fc4c70e
scsi: hisi_sas: allocate slot buffer earlier

BugLink: https://bugs.launchpad.net/bugs/1774472
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>
(cherry picked from commit 3de0026dad6b8e83d8a699aef92638c50ba966f7 linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/hisi_sas/hisi_sas_main.c