Re: [PATCH v4] scsi: ufs: core: Don't perform UFS clkscale if host asyn scan in progress

From: Bart Van Assche
Date: Fri Jul 25 2025 - 10:55:26 EST


On 7/25/25 2:13 AM, Peter Wang (王信友) wrote:
Could consider luns_avail instead mutex?

That would be wrong. I think it is essential that scan_mutex is used in
this patch. Additionally, the lock inversion is between devfreq->lock
and (c->notifiers)->rwsem so it seems unlikely to me that Ziqi's patch
is the patch that introduced the reported lock inversion.

Bart.