lkml.org 
[lkml]   [2012]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC] rcu: Make __rcu_read_lock() inlinable
On Tue, Mar 27, 2012 at 08:26:07AM -0400, Steven Rostedt wrote:
> On Mon, 2012-03-26 at 22:15 -0700, Paul E. McKenney wrote:
>
> > Hmmm... I am not yet sure whether it is easier to make RCU use legal
> > in switch_to() or to detect it. I am inclined to take whatever course
> > is easiest, which is likely to make it legal. :-/
>
> We could just declare that we do not allow tracepoints in arch specific
> "switch_to" code. Then you shouldn't need to worry about RCU in
> switch_to().

Heh. I expect that to work about as well as the earlier declaration
that RCU not be used in the idle loop. ;-)

> sched_rcu can still work there correct? That is, a synchronize_sched()
> should not be affected. As that is needed for the function tracing, and
> that may be called within a switch_to.

Yep, good point.

Thanx, Paul



\
 
 \ /
  Last update: 2012-03-27 18:43    [W:0.051 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site