lkml.org 
[lkml]   [2004]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [patch 2/2] cpu hotplug notifier for updating sched domains
    From
    Date
    On Wed, 2004-09-08 at 12:19, Nick Piggin wrote:
    > Nathan Lynch wrote:
    > >Well, we have to "lie" to arch_init_sched_domains a little bit when
    > >bringing a cpu online, by setting the soon-to-be-online cpu's bit in the
    > >argument mask. So I think the first patch is still necessary.

    I'm still a little surprised that you don't change the domains while the
    machine is frozen (ie in take_cpu_down()). This should avoid any races,
    since noone can be looking at the domains at this time.

    > Do you have a theoretical race here? Can we hotplug a CPU before the notifier
    > is registered? (I know we *can't* because it is still earlyish boot).

    No, init has so many serial assumptions that this is the least of our
    worries.

    Rusty.
    --
    Anyone who quotes me in their signature is an idiot -- Rusty Russell

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:0.019 / U:29.844 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site