Re: [PATCH v3] scsi: ufs: core: Fix data race in CPU latency PM QoS request handling
From: Martin K. Petersen
Date: Mon Sep 29 2025 - 22:37:20 EST
On Wed, 17 Sep 2025 17:41:43 +0800, Zhongqiu Han wrote:
> 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-queue, thanks!
[1/1] scsi: ufs: core: Fix data race in CPU latency PM QoS request handling
https://git.kernel.org/mkp/scsi/c/79dde5f7dc7c
--
Martin K. Petersen