[patch] Fix panic on multi-node / NUMA machines

Matthew Dobson (colpatch@us.ibm.com)
Mon, 25 Nov 2002 13:09:34 -0800


This is a multi-part message in MIME format.
--------------060207040403000007080005
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------060207040403000007080005
Content-Type: text/plain;
name="topo_ordering-2.5.49.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="topo_ordering-2.5.49.patch"

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);

--------------060207040403000007080005--

-
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/