Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...>, <linux-kernel@...>, <netdev@...>, <netfilter-devel@...>, <akpm@...>, <torvalds@...>, <davem@...>, <dada1@...>, <zbr@...>, <jeff.chua.linux@...>, <paulus@...>, <laijs@...>, <jengelh@...>, <r000n@...>, <benh@...>
Date: Sunday, April 26, 2009 - 5:44 pm

On Sun, Apr 26, 2009 at 10:22:55PM +0200, Ingo Molnar wrote:

Well, one reason I didn't take this approach was that I didn't happen
to think of it.  ;-)

Also that I hadn't heard of wait_task_context_switch().

Hmmm...  Looking for wait_task_context_switch().  OK, found it.

It looks to me that this primitive won't return until the scheduler
actually decides to run something else.  We instead need to have
something that stops waiting once the CPU enters the scheduler, hence
the previous thought of making rcu_qsctr_inc() do a bit of extra work.

This would be a way of making an expedited RCU-sched across all
RCU implementations.  As noted in the earlier email, it would not
handle RCU or RCU-bh in a -rt kernel.


We would want to wait for all of the CPUs in parallel, though, wouldn't
we?  Seems that we would not want to wait for the last CPU to do another
trip through the scheduler if it had already passed through the scheduler
while we were waiting on the earlier CPUs.

So it seems like we would still want a two-pass approach -- one pass to
capture the current state, the second pass to wait for the state to
change.

							Thanx, Paul
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Sun Apr 26, 1:23 am)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Sun Apr 26, 4:54 pm)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Sun Apr 26, 5:44 pm)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Mon Apr 27, 9:21 am)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Mathieu Desnoyers, (Mon Apr 27, 11:54 am)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Evgeniy Polyakov, (Mon Apr 27, 4:56 pm)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Mon Apr 27, 12:16 pm)
Re: [PATCH RFC] v2 expedited "big hammer" RCU grace periods, Paul E. McKenney, (Mon Apr 27, 12:17 pm)