diff options
author | Stephane Eranian <[email protected]> | 2015-11-12 11:00:03 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-11-23 09:21:03 +0100 |
commit | ddaaf4e291dd63db0667991e4a335fcf3a7df13e (patch) | |
tree | 844099db01306e6badb1cd9bc867e19263547812 /lib/btree.c | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (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