Re: [PATCH v2] scsi: ufs: core: fix devfreq deadlocks
From: Martin K. Petersen
Date: Wed Jan 18 2023 - 19:21:59 EST
On Mon, 16 Jan 2023 17:12:01 +0100, Johan Hovold wrote:
> There is a lock inversion and rwsem read-lock recursion in the devfreq
> target callback which can lead to deadlocks.
>
> Specifically, ufshcd_devfreq_scale() already holds a clk_scaling_lock
> read lock when toggling the write booster, which involves taking the
> dev_cmd mutex before taking another clk_scaling_lock read lock.
>
> [...]
Applied to 6.2/scsi-fixes, thanks!
[1/1] scsi: ufs: core: fix devfreq deadlocks
https://git.kernel.org/mkp/scsi/c/ba81043753ff
--
Martin K. Petersen Oracle Linux Engineering