On Mon, Nov 08, 2010 at 11:38:32AM -0800, Paul E. McKenney wrote:
Yeah sure, but I wonder if the resulting rcu config will have a
large performance impact because of that.
In fact, my worry is: if the last resort to have a sane non-timer based
rcu is to bloat fast path functions like preempt_disable() or local_irq...
(that notwithstanding we have a bloated rcu_read_unlock() on this rcu config
because of its main nature), wouldn't it be better to eventually pick the
syscall/exception tweaked fast path version?
Perhaps I'll need to measure the impact of both, but I suspect I'll get
controversial results depending on the workload.
Yeah, the resulting change must be NULL in others rcu configs.
Probably yeah, otherwise there will be a kind of sense split against
the usual rcu_read_lock() and everybody will be confused.
Perhaps we need a different API for the underlying rcu_read_lock()
call in the other flavours when preempt is already disabled or
bh is already disabled:
rcu_enter_read_lock_sched();
__rcu_read_lock_sched();
rcu_start_read_lock_sched();
(same for bh)
Hmm...
Perfect. That could be further optimized with what I said above but
other than that, that's what I was thinking about.
--