All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	Andi Kleen <ak@suse.de>, Greg Kroah-Hartman <gregkh@suse.de>,
	Arjan van de Ven <arjan@infradead.org>,
	Hugh Dickins <hugh@veritas.com>, walt <w41ter@gmail.com>
Subject: Re: [PULL] module, param and stop_machine patches
Date: Sun, 26 Oct 2008 13:42:39 +0100	[thread overview]
Message-ID: <20081026124239.GA4787@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <200810261916.17311.rusty@rustcorp.com.au>

On Sun, Oct 26, 2008 at 07:16:16PM +1100, Rusty Russell wrote:
> On Sunday 26 October 2008 09:33:43 Linus Torvalds wrote:
> > On Sun, 26 Oct 2008, Rusty Russell wrote:
> > > Thanks, Heiko tracked this down; he's probably sleeping now but Hugh and
> > > Walt reported this fixes it for them and it makes sense.
> > I'm not seeing any "tracked it down".
> He tracked it down to moving init_workqueues() too early, so he moved that
> back.
> 
> > And it then mixes things up with 'stop_machine_init()' mess. Why does that
> > need to run so early?
> 
> The S/390 guys want to run it stop_machine v. early, so when Heiko introduced
> stop_machine_init() he made it an early_initcall().
> 
> > IOW, I don't think that patch is anything but a "hey, test if it works
> > with this". None of the changes or the problems are explained.
> 
> Indeed.
> 
> Turns out it's the cpu_online_map difference.  If init_workqueues() is called
> too early, only the boot cpu is set.  We then only create_workqueue_thread()
> for the boot cpu.
> 
> If CONFIG_HOTPLUG_CPU=y, it's fine since the hotplug callback will create the
> workqueue threads for the other cpus as they come up.  Without it, the kevent
> workqueues on non-boot cpus don't get processed.
> 
> Still boots for me, but was a bit sick (varying, but no keyboard was one
> symptom).

Yes, it's all my fault. I always think in terms of CONFIG_HOTPLUG_CPU=y, so
I couldn't make any sense of the bug reports and just reverted the
init_workqueues() call move and added an explicit stop_machine_init() call,
so that we don't depend on linkage order.
Thanks for tracking it down, Rusty!

> > Nor do I see a sign-off from Heiko on it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

But I guess you don't need that anymore since you already committed a
fix for this.

Thanks,
Heiko

  reply	other threads:[~2008-10-26 11:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 23:05 [PULL] module, param and stop_machine patches Rusty Russell
2008-10-25 21:17 ` Linus Torvalds
2008-10-25 22:24   ` Rusty Russell
2008-10-25 22:33     ` Linus Torvalds
2008-10-25 22:56       ` Linus Torvalds
2008-10-25 23:08         ` Linus Torvalds
2008-10-26  3:11         ` walt
2008-10-26  8:16       ` Rusty Russell
2008-10-26 12:42         ` Heiko Carstens [this message]
2008-10-26 16:29         ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081026124239.GA4787@osiris.boeblingen.de.ibm.com \
    --to=heiko.carstens@de.ibm.com \
    --cc=ak@suse.de \
    --cc=arjan@infradead.org \
    --cc=gregkh@suse.de \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@linux-foundation.org \
    --cc=w41ter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.