aboutsummaryrefslogtreecommitdiff
path: root/lib/btree.c
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2015-11-12 11:00:03 +0100
committerIngo Molnar <[email protected]>2015-11-23 09:21:03 +0100
commitddaaf4e291dd63db0667991e4a335fcf3a7df13e (patch)
tree844099db01306e6badb1cd9bc867e19263547812 /lib/btree.c
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
perf/core: Fix RCU problem with cgroup context switching code
The RCU checker detected RCU violation in the cgroup switching routines perf_cgroup_sched_in() and perf_cgroup_sched_out(). We were dereferencing cgroup from task without holding the RCU lock. Fix this by holding the RCU read lock. We move the locking from perf_cgroup_switch() to avoid double locking. Signed-off-by: Stephane Eranian <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/btree.c')
0 files changed, 0 insertions, 0 deletions