mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Dobson <colpatch@us.ibm.com>
To: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: [patch] Fix panic on multi-node / NUMA machines
Date: Mon, 25 Nov 2002 13:09:34 -0800	[thread overview]
Message-ID: <3DE2918E.6090007@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

Linus,
	2.5.49 panics on multi-node machines because of an mistake in the order 
topology drivers/devclasses are registered with sysfs.  This patch fixes 
the problem.

Please apply.

Cheers!

-Matt


[-- Attachment #2: topo_ordering-2.5.49.patch --]
[-- Type: text/plain, Size: 1000 bytes --]

diff -Nur linux-2.5.49-vanilla/drivers/base/memblk.c linux-2.5.49-test/drivers/base/memblk.c
--- linux-2.5.49-vanilla/drivers/base/memblk.c	Fri Nov 22 13:41:12 2002
+++ linux-2.5.49-test/drivers/base/memblk.c	Mon Nov 25 13:32:31 2002
@@ -49,7 +49,7 @@
 
 static int __init register_memblk_type(void)
 {
-	driver_register(&memblk_driver);
-	return devclass_register(&memblk_devclass);
+	devclass_register(&memblk_devclass);
+	return driver_register(&memblk_driver);
 }
 postcore_initcall(register_memblk_type);
diff -Nur linux-2.5.49-vanilla/drivers/base/node.c linux-2.5.49-test/drivers/base/node.c
--- linux-2.5.49-vanilla/drivers/base/node.c	Fri Nov 22 13:40:21 2002
+++ linux-2.5.49-test/drivers/base/node.c	Mon Nov 25 13:32:04 2002
@@ -93,7 +93,7 @@
 
 static int __init register_node_type(void)
 {
-	driver_register(&node_driver);
-	return devclass_register(&node_devclass);
+	devclass_register(&node_devclass);
+	return driver_register(&node_driver);
 }
 postcore_initcall(register_node_type);

                 reply	other threads:[~2002-11-25 21:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3DE2918E.6090007@us.ibm.com \
    --to=colpatch@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®