diff options
| author | Wei Li <[email protected]> | 2024-09-24 09:45:14 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2024-10-03 20:43:23 +0000 |
| commit | 2a13ca2e8abb12ee43ada8a107dadca83f140937 (patch) | |
| tree | 46b1f2c0fe819db33b9bdee5f0f55ab3862a2d95 /rust/helpers | |
| parent | tracing/timerlat: Fix a race during cpuhp processing (diff) | |
| download | kernel-2a13ca2e8abb12ee43ada8a107dadca83f140937.tar.gz kernel-2a13ca2e8abb12ee43ada8a107dadca83f140937.zip | |
tracing/hwlat: Fix a race during cpuhp processing
The cpuhp online/offline processing race also exists in percpu-mode hwlat
tracer in theory, apply the fix too. That is:
T1 | T2
[CPUHP_ONLINE] | cpu_device_down()
hwlat_hotplug_workfn() |
| cpus_write_lock()
| takedown_cpu(1)
| cpus_write_unlock()
[CPUHP_OFFLINE] |
cpus_read_lock() |
start_kthread(1) |
cpus_read_unlock() |
Cc: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: ba998f7d9531 ("trace/hwlat: Support hotplug operations")
Signed-off-by: Wei Li <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
