diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2026-02-11 14:32:21 -0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-02-27 16:40:22 +0100 |
| commit | da45c8d5f051434a3c68397e66ae2d3b3c97cdec (patch) | |
| tree | eac0be6ee982477dffeac0dada09d1415c48289d /tools/perf/scripts/python | |
| parent | bec2ee2390c95ed0c44494340464e69e79802e4a (diff) | |
perf/core: Simplify __detach_global_ctx_data()
Like in the attach_global_ctx_data() it has a O(N^2) loop to delete task
context data for each thread. But perf_free_ctx_data_rcu() can be
called under RCU read lock, so just calls it directly rather than
iterating the whole thread list again.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260211223222.3119790-4-namhyung@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
