Re: [RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-15 Thread Josh Triplett
On Tue, Feb 16, 2016 at 11:01:43AM +0800, Boqun Feng wrote: > On Mon, Feb 15, 2016 at 05:05:53PM -0800, Paul E. McKenney wrote: > > On Thu, Feb 04, 2016 at 12:45:12AM +0800, Boqun Feng wrote: > > > The variables protected by an RCU read-side critical section are > > > sometimes hard to figure out,

Re: [RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-15 Thread Boqun Feng
On Mon, Feb 15, 2016 at 08:08:40PM -0800, Paul E. McKenney wrote: > On Tue, Feb 16, 2016 at 11:01:43AM +0800, Boqun Feng wrote: > > On Mon, Feb 15, 2016 at 05:05:53PM -0800, Paul E. McKenney wrote: > > > On Thu, Feb 04, 2016 at 12:45:12AM +0800, Boqun Feng wrote: > > > > The variables protected by

Re: [RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-15 Thread Paul E. McKenney
On Tue, Feb 16, 2016 at 11:01:43AM +0800, Boqun Feng wrote: > On Mon, Feb 15, 2016 at 05:05:53PM -0800, Paul E. McKenney wrote: > > On Thu, Feb 04, 2016 at 12:45:12AM +0800, Boqun Feng wrote: > > > The variables protected by an RCU read-side critical section are > > > sometimes hard to figure out,

Re: [RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-15 Thread Boqun Feng
On Mon, Feb 15, 2016 at 05:05:53PM -0800, Paul E. McKenney wrote: > On Thu, Feb 04, 2016 at 12:45:12AM +0800, Boqun Feng wrote: > > The variables protected by an RCU read-side critical section are > > sometimes hard to figure out, especially when the critical section is > > long or has some functio

Re: [RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-15 Thread Paul E. McKenney
On Thu, Feb 04, 2016 at 12:45:12AM +0800, Boqun Feng wrote: > The variables protected by an RCU read-side critical section are > sometimes hard to figure out, especially when the critical section is > long or has some function calls in it. However, figuring out which > variable a RCU read-side crit

[RFC 6/6] RCU: Track rcu_dereference() in RCU read-side critical section

2016-02-03 Thread Boqun Feng
The variables protected by an RCU read-side critical section are sometimes hard to figure out, especially when the critical section is long or has some function calls in it. However, figuring out which variable a RCU read-side critical section protects could save us a lot of time for code reviewing