Skip to content
Commit 31950eb6 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

mm/init: cpu_hotplug_init() must be initialized before SLAB



SLAB uses get/put_online_cpus() which use a mutex which is itself only
initialized when cpu_hotplug_init() is called.  Currently we hang suring
boot in SLAB due to doing that too late.

Reported by James Bottomley and Sachin Sant (and possibly others).
Debugged by Benjamin Herrenschmidt.

This just removes the dynamic initialization of the data structures, and
replaces it with a static one, avoiding this dependency entirely, and
removing one unnecessary special initcall.

Tested-by: default avatarSachin Sant <sachinp@in.ibm.com>
Tested-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ac1b7c37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment