Re: [PATCH v3] scsi: ufs: core: Fix data race in CPU latency PM QoS request handling

From: Martin K. Petersen

Date: Wed Sep 24 2025 - 22:00:33 EST



Zhongqiu,

> The cpu_latency_qos_add/remove/update_request interfaces lack internal
> synchronization by design, requiring the caller to ensure thread
> safety. The current implementation relies on the `pm_qos_enabled`
> flag, which is insufficient to prevent concurrent access and cannot
> serve as a proper synchronization mechanism. This has led to data
> races and list corruption issues.

Applied to 6.18/scsi-staging, thanks!

--
Martin K. Petersen