Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-09 Thread Frederic Weisbecker
On Fri, Jul 06, 2012 at 09:27:09AM -0700, Paul E. McKenney wrote: On Fri, Jul 06, 2012 at 02:00:14PM +0200, Frederic Weisbecker wrote: Allow calls to rcu_user_enter() even if we are already in userspace (as seen by RCU) and allow calls to rcu_user_exit() even if we are already in the

Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-09 Thread Frederic Weisbecker
On Sun, Jul 08, 2012 at 06:54:18PM +0300, Avi Kivity wrote: On 07/06/2012 03:00 PM, Frederic Weisbecker wrote: Allow calls to rcu_user_enter() even if we are already in userspace (as seen by RCU) and allow calls to rcu_user_exit() even if we are already in the kernel. This makes the

Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-08 Thread Avi Kivity
On 07/06/2012 03:00 PM, Frederic Weisbecker wrote: Allow calls to rcu_user_enter() even if we are already in userspace (as seen by RCU) and allow calls to rcu_user_exit() even if we are already in the kernel. This makes the APIs more flexible to be called from architectures. Exception

Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest

2012-07-06 Thread Paul E. McKenney
On Fri, Jul 06, 2012 at 02:00:14PM +0200, Frederic Weisbecker wrote: Allow calls to rcu_user_enter() even if we are already in userspace (as seen by RCU) and allow calls to rcu_user_exit() even if we are already in the kernel. This makes the APIs more flexible to be called from