diff options
author | Peter Zijlstra <[email protected]> | 2010-09-16 19:17:24 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-09-21 13:55:44 +0200 |
commit | 41945f6ccf1e86f87fddf6b32db9cf431c05fb54 (patch) | |
tree | cf64d47bfff06ff4560efcaa23a067fa99db34dd /net/unix/sysctl_net_unix.c | |
parent | 8b8e2ec1eeca7f6941bc81cefc9663018d6ceb57 (diff) |
perf: Avoid RCU vs preemption assumptions
The per-pmu per-cpu context patch converted things from
get_cpu_var() to this_cpu_ptr(), but that only works if
rcu_read_lock() actually disables preemption, and since
there is no such guarantee, we need to fix that.
Use the newly introduced {get,put}_cpu_ptr().
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Tejun Heo <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions