Re: [PATCH v3 06/12] scsi: ufs: core: Add helpers to pause and resume command processing
From: Bart Van Assche
Date: Mon Mar 16 2026 - 14:08:44 EST
On 3/14/26 3:38 AM, Can Guo wrote:
I also checked the history of changes toThis deadlock fix: ba81043753ff ("scsi: ufs: core: Fix devfreq
ufshcd_clock_scaling_prepare() and ufshcd_clock_scaling_unprepare(),
I can see multiple issues, e.g., deadlock, were reported and fixed.
deadlocks")? My understanding is that the deadlock was related to
calling ufshcd_wb_toggle() synchronously from ufshcd_devfreq_scale().
Such deadlocks can be avoided by converting a synchronous call into
an asynchronous call (queuing a work item). However, I'm not sure that's
an option in the context of clock scaling?
Thanks,
Bart.