Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 05:35:55PM -0700, Joel Fernandes wrote: > On Mon, May 14, 2018 at 10:22:05AM -0700, Paul E. McKenney wrote: > > On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > > > On Sun, 13 May 2018 20:15:35 -0700 > > > "Joel Fernandes (Google)"

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 10:22:05AM -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > > On Sun, 13 May 2018 20:15:35 -0700 > > "Joel Fernandes (Google)" wrote: > > > > > Recently we had a discussion about cond_resched

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > On Sun, 13 May 2018 20:15:35 -0700 > "Joel Fernandes (Google)" wrote: > > > Recently we had a discussion about cond_resched unconditionally > > recording a voluntary context switch [1]. > > > > Lets add a

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Steven Rostedt
On Sun, 13 May 2018 20:15:35 -0700 "Joel Fernandes (Google)" wrote: > Recently we had a discussion about cond_resched unconditionally > recording a voluntary context switch [1]. > > Lets add a comment clarifying that how this API is to be used. > > [1] >

[PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-13 Thread Joel Fernandes (Google)
Recently we had a discussion about cond_resched unconditionally recording a voluntary context switch [1]. Lets add a comment clarifying that how this API is to be used. [1] https://lkml.kernel.org/r/1526027434-21237-1-git-send-email-byungchul.p...@lge.com Signed-off-by: Joel Fernandes (Google)