Messages in this thread | | | Date | Mon, 14 Apr 2008 18:33:12 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH 0/5] call_rcu_sched() series |
| |
On Sun, 13 Apr 2008 20:58:48 -0700 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> wrote:
> This series adds call_rcu_sched(), applies some fixes to RCU Classic, > adds rcu_barrier_sched(), updates rcutorture, and updates the RCU > documentation.
Some massaging was needed here to make these apply against the RCU changes in git-sched.
All fairly simple, except I don't know if these:
static inline void rcu_enter_nohz(void) { smp_mb(); /* CPUs seeing ++ must see prior RCU read-side crit sects */ __get_cpu_var(rcu_dyntick_sched).dynticks++; WARN_ON(__get_cpu_var(rcu_dyntick_sched).dynticks & 0x1); }
static inline void rcu_exit_nohz(void) { __get_cpu_var(rcu_dyntick_sched).dynticks++; smp_mb(); /* CPUs seeing ++ must see later RCU read-side crit sects */ WARN_ON(!(__get_cpu_var(rcu_dyntick_sched).dynticks & 0x1)); }
in include/linux/rcupreempt.h ended up the way we want them?
| |