]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/core: Fix the WARN_ON_ONCE is out of lock protected region
authorLuo Gengkun <luogengkun@huaweicloud.com>
Thu, 26 Jun 2025 13:54:03 +0000 (13:54 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 30 Jun 2025 07:32:49 +0000 (09:32 +0200)
commit7b4c5a37544ba22c6ebe72c0d4ea56c953459fa5
tree60257a1e8ba59daa7ec94506395b92c349822d30
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
perf/core: Fix the WARN_ON_ONCE is out of lock protected region

commit 3172fb986666 ("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: 3172fb986666 ("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
kernel/events/core.c