perf/core: Fix the WARN_ON_ONCE is out of lock protected region
commit 3172fb98 ("perf/core: Fix WARN in perf_cgroup_switch()") try to fix a concurrency problem between perf_cgroup_switch and perf_cgroup_event_disable. But it does not to move the WARN_ON_ONCE into lock-protected region, so the warning is still be triggered. Fixes: 3172fb98 ("perf/core: Fix WARN in perf_cgroup_switch()") Signed-off-by:Luo Gengkun <luogengkun@huaweicloud.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20250626135403.2454105-1-luogengkun@huaweicloud.com
Loading
Please register or sign in to comment