]> git.proxmox.com Git - mirror_spl.git/commit
Fix CPU hotplug
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 12 Oct 2015 19:31:05 +0000 (12:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Oct 2015 16:50:40 +0000 (09:50 -0700)
commit9b13f65d284d3a6b455df3199ffc83fd18bbdded
tree553d7c24cd00bed90101058851c6e77a48107a6f
parent374303a3c9f7783e2b8122f5dcf2c1d053cf13f7
Fix CPU hotplug

Allocate a kmem cache magazine for every possible CPU which might
be added to the system.  This ensures that when one of these CPUs
is enabled it can be safely used immediately.

For many systems the number of online CPUs is identical to the
number of present CPUs so this does imply an increased memory
footprint.  In fact, dynamically allocating the array of magazine
pointers instead of using the worst case NR_CPUS can end up
decreasing our memory footprint.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #482
include/sys/kmem_cache.h
module/spl/spl-kmem-cache.c