[PATCH v2] ufs: core: Fix error handler host_sem issue
Martin K. Petersen
martin.petersen at oracle.com
Tue Oct 21 19:27:16 PDT 2025
Peter,
> Fix the issue where host_sem is not released due to a new return patch
> in commit f966e02ae521. Check pm_op_in_progress before acquiring
> hba->host_sem to prevent deadlocks and ensure proper resource
> management during error handling. Add comment for use
> ufshcd_rpm_get_noresume() to safely perform link recovery without
> interfering with ongoing PM operations.
Applied to 6.18/scsi-fixes, thanks!
--
Martin K. Petersen
More information about the Linux-mediatek
mailing list