aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-qcom-common.c
diff options
context:
space:
mode:
authorZihuan Zhang <[email protected]>2025-05-09 02:25:54 +0000
committerJiri Kosina <[email protected]>2025-06-10 19:43:24 +0000
commitd3db1ce9bf8f4a8e03d3bd19000b32290bca7d74 (patch)
tree61b93aa2e84ee4e3b9dbc5d60809ebc1f053fa68 /drivers/pci/controller/dwc/pcie-qcom-common.c
parentMerge tag 'hid-for-linus-2025060301' of git://git.kernel.org/pub/scm/linux/ke... (diff)
downloadkernel-d3db1ce9bf8f4a8e03d3bd19000b32290bca7d74.tar.gz
kernel-d3db1ce9bf8f4a8e03d3bd19000b32290bca7d74.zip
HID: debug: Use the __set_current_state()
When detecting an invalid list->hdev, the process needs to manually set its state to TASK_RUNNING and exit. In the original code, set_current_state() (which includes a memory barrier) is used here, but it is immediately followed by a mutex_unlock() call. Since mutex_unlock() internally includes a memory barrier, this ensures that all modifications within the critical section (including the process state) are visible to other CPUs. Therefore, replacing it with __set_current_state() (without an implicit barrier) avoids redundant memory barriers. Signed-off-by: Zihuan Zhang <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions