Re: [PATCH 05/32] nohz: Move rcu dynticks idle mode handling toidle enter/exit APIs

From: Peter Zijlstra
Date: Tue Aug 30 2011 - 07:18:22 EST


On Tue, 2011-08-30 at 01:35 +0200, Frederic Weisbecker wrote:
> But rcu read side critical sections (preemption disabled, rcu_read_lock(),
> softirq disabled) don't need the tick to enforce the critical section
> itself.

Note that with PREEMPT_RCU only the rcu_read_lock() is actually an rcu
read side critical section, non of the others should be used as such.
Relying on preempt_disable(), local_bh_disable() and similar is broken
as per a long while ago.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/