Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-07 Thread Paul E. McKenney
On Wed, Oct 07, 2015 at 09:22:27AM +0200, Peter Zijlstra wrote: > On Tue, Oct 06, 2015 at 02:02:43PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 06, 2015 at 10:27:41PM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > > > > /** > > > > + * rc

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-07 Thread Peter Zijlstra
On Tue, Oct 06, 2015 at 02:02:43PM -0700, Paul E. McKenney wrote: > On Tue, Oct 06, 2015 at 10:27:41PM +0200, Peter Zijlstra wrote: > > On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > > > /** > > > + * rcu_pointer_handoff() - Hand off a pointer from RCU to other mechanism > > >

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-06 Thread Paul E. McKenney
On Tue, Oct 06, 2015 at 10:27:41PM +0200, Peter Zijlstra wrote: > On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > > /** > > + * rcu_pointer_handoff() - Hand off a pointer from RCU to other mechanism > > + * @p: The pointer to hand off > > + * > > + * This is simply an identity

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-06 Thread Peter Zijlstra
On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > /** > + * rcu_pointer_handoff() - Hand off a pointer from RCU to other mechanism > + * @p: The pointer to hand off > + * > + * This is simply an identity function, but it documents where a pointer > + * is handed off from RCU to s

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-06 Thread Josh Triplett
On Tue, Oct 06, 2015 at 10:31:52AM -0700, Paul E. McKenney wrote: > On Tue, Oct 06, 2015 at 10:21:28AM -0700, Josh Triplett wrote: > > On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > > > This commit adds an rcu_pointer_handoff() that is intended to mark > > > situations where a

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-06 Thread Paul E. McKenney
On Tue, Oct 06, 2015 at 10:21:28AM -0700, Josh Triplett wrote: > On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > > This commit adds an rcu_pointer_handoff() that is intended to mark > > situations where a structure's protection transitions from RCU to some > > other mechanism (l

Re: [PATCH tip/core/rcu 10/13] rcu: Add rcu_pointer_handoff()

2015-10-06 Thread Josh Triplett
On Tue, Oct 06, 2015 at 09:13:45AM -0700, Paul E. McKenney wrote: > This commit adds an rcu_pointer_handoff() that is intended to mark > situations where a structure's protection transitions from RCU to some > other mechanism (locking, reference counting, whatever). These markings > should allow e