Re: [PATCH v3] scsi: libsas: fix HA resume deadlock and hisi_sas disk-wake race

From: Martin K. Petersen

Date: Tue Jul 28 2026 - 23:09:54 EST


On Thu, 16 Jul 2026 16:11:45 +0800, Xingui Yang wrote:

> Commit fbefe22811c3140 ("scsi: libsas: Don't always drain event workqueue
> for HA resume") introduced sas_resume_ha_no_sync() to avoid a deadlock:
> the PHYE_RESUME_TIMEOUT handler, running on the HA event workqueue, calls
> sas_deform_port() -> sas_destruct_devices(), which removes SCSI devices and
> waits for the host to become runtime-active. But the host cannot resume
> until sas_resume_ha() -> sas_drain_work() returns, and the drain is blocked
> on that very handler.
>
> [...]

Applied to 7.2/scsi-fixes, thanks!

[1/1] scsi: libsas: fix HA resume deadlock and hisi_sas disk-wake race
https://git.kernel.org/mkp/scsi/c/3dbbbf656b85

--
Martin K. Petersen