Commit bc179aa7 authored by Luo Gengkun's avatar Luo Gengkun Committed by Greg Kroah-Hartman
Browse files

perf/core: Fix the WARN_ON_ONCE is out of lock protected region



[ Upstream commit 7b4c5a37 ]

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: default avatarLuo Gengkun <luogengkun@huaweicloud.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250626135403.2454105-1-luogengkun@huaweicloud.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8f4c7131
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment