Re: [PATCH] cpu hotplug, sched: Introduce cpu_active_map and redo sched domain managment (take 2)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dmitry Adamushko <dmitry.adamushko@...>
Cc: <mingo@...>, <a.p.zijlstra@...>, <torvalds@...>, <pj@...>, <ghaskins@...>, <linux-kernel@...>
Date: Wednesday, July 16, 2008 - 4:29 pm

Dmitry Adamushko wrote:
Hmm, as you suggested I added synchronize_sched() after clearing the active
bit (see below). Is that not nought enough ? I mean you mentioned that
stop_machine syncs things up, I assume synchronize_sched does too.

I guess testing inside the double_rq_lock() does not hurt anyway. We already
have fail recovery path there. But are you sure it's needed given the explicit
sync (in fact we have double sync now :), one with synchronize_sched() and
then with the stop_machine)).

How about we just introduce any_active_cpu() and replace all the usages of
any_online_cpu() in the scheduler ?

Yep. As you suggested I've added synchronize_sched() and updated the comment
that explains the deal with the stop machine.
	http://lkml.org/lkml/2008/7/15/736
Peter, already ACKed it.

Max
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] cpu hotplug, sched: Introduce cpu_active_map and..., Max Krasnyansky, (Wed Jul 16, 4:29 pm)