OSDN Git Service

scsi: hisi_sas: Factor out task prep and delivery code
authorJohn Garry <john.garry@huawei.com>
Wed, 15 Dec 2021 14:37:37 +0000 (22:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Dec 2021 03:59:57 +0000 (22:59 -0500)
commitdc313f6b125b095d3d2683d94d5f69c8dc9bdc36
tree53c9719de780968b93709a071820196310e3de78
parent08c61b5d902b70180b517e9f2616ad70b7a98dcf
scsi: hisi_sas: Factor out task prep and delivery code

The task prep code is the same between the normal path (in
hisi_sas_task_prep()) and the internal abort path, so factor is out into a
common function.

Link: https://lore.kernel.org/r/1639579061-179473-5-git-send-email-john.garry@huawei.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