Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Friday, April 16, 2010 - 6:43 am

On Fri, Apr 16, 2010 at 04:54:51PM +1000, Benjamin Herrenschmidt wrote:

From the perspective of call_rcu_sched() and synchronize_sched(),
the following things mark RCU-sched read-side critical sections:

1.	rcu_read_lock_sched() and rcu_read_unlock_sched().

2.	preempt_disable() and preempt_enable(), along with anything
	else that disables preemption.

3.	local_bh_disable() and local_bh_enable(), along with anything
	else that disables bottom halves.

4.	local_irq_disable() and local_irq_enable(), along wiht anything
	else that disables hardirqs.

5.	Handlers for NMIs.

So I believe that in this case call_rcu_sched() is your friend.  ;-)

							Thanx, Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Mon Apr 12, 6:05 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:51 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:54 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 1:29 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Paul E. McKenney, (Fri Apr 16, 6:43 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 4:25 pm)