scsi: hisi_sas: Directly call register snapshot instead of using workqueue
authorYihang Li <liyihang9@huawei.com>
Wed, 13 Sep 2023 02:15:26 +0000 (10:15 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 22 Sep 2023 02:01:28 +0000 (22:01 -0400)
commit2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde
tree4db17b9f274113ad2419ea9af818ee3994fadca8
parent6de426f9276c448e2db7238911c97fb157cb23be
scsi: hisi_sas: Directly call register snapshot instead of using workqueue

Currently, register information dump is performed via workqueue, regardless
of the trigger mode (automatic or manual). There is a delay in dumping
register through workqueue, the exact register information at trigger time
cannot be obtained.

Call register snapshot directly instead of through a workqueue.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1694571327-78697-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c