Re: [PATCH] trace: Use rcu_dereference_raw for hooks from trace-event subsystem

2018-08-03 Thread Masami Hiramatsu
On Thu, 2 Aug 2018 19:34:07 -0700 "Joel Fernandes (Google)" wrote: > Since we switched to using SRCU for tracepoints used in the idle path, > we can no longer use rcu_dereference_sched for dereferencing points in > trace-event hooks. > > Since tracepoints can now use either SRCU or sched-RCU,

Re: [PATCH] trace: Use rcu_dereference_raw for hooks from trace-event subsystem

2018-08-03 Thread Masami Hiramatsu
On Thu, 2 Aug 2018 19:34:07 -0700 "Joel Fernandes (Google)" wrote: > Since we switched to using SRCU for tracepoints used in the idle path, > we can no longer use rcu_dereference_sched for dereferencing points in > trace-event hooks. > > Since tracepoints can now use either SRCU or sched-RCU,

[PATCH] trace: Use rcu_dereference_raw for hooks from trace-event subsystem

2018-08-02 Thread Joel Fernandes (Google)
Since we switched to using SRCU for tracepoints used in the idle path, we can no longer use rcu_dereference_sched for dereferencing points in trace-event hooks. Since tracepoints can now use either SRCU or sched-RCU, just use rcu_dereference_raw for traceevents just like we're doing when

[PATCH] trace: Use rcu_dereference_raw for hooks from trace-event subsystem

2018-08-02 Thread Joel Fernandes (Google)
Since we switched to using SRCU for tracepoints used in the idle path, we can no longer use rcu_dereference_sched for dereferencing points in trace-event hooks. Since tracepoints can now use either SRCU or sched-RCU, just use rcu_dereference_raw for traceevents just like we're doing when