]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Resume host while sending SMP I/Os
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 20 Dec 2021 11:21:32 +0000 (19:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:38:30 +0000 (23:38 -0500)
commitef16f6d1a0b280f9cc4476825f1ab263e2b53b62
treedc5c4934f10cadb7378de2be29267582001448d0
parent70e6012abbb8bcffe3518c48467b316013a38026
scsi: libsas: Resume host while sending SMP I/Os

When sending SMP I/Os to the host we need to ensure that the host is not
suspended and can process the commands. This is a better approach than
replying on the host to resume itself to handle such commands. Use
pm_runtime_get_sync() and pm_runtime_put_sync() calls for the host when
executing SMP I/Os.

Link: https://lore.kernel.org/r/1639999298-244569-10-git-send-email-chenxiang66@hisilicon.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_expander.c
drivers/scsi/libsas/sas_internal.h