Skip to content
Snippets Groups Projects
user avatar
Linus Torvalds authored
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>
31950eb6
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.