Skip to contentSkip to conversation

percpu fixes for 2.6.32-rc1

GIT PULL Tejun Heo 1 participant 1 message Sep 29, 2009

Subsystems (3)
lore
Share & tools
lore

Tejun Heo

author maintainer
#0 lore raw

Hello, Linus.

Please pull from the following percpu fix branch.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-linus

Changes are

* pcpu_setup_first_chunk() bug which triggered spurious BUG_ON() on systems with non-power-of-two number of cpus fixed.

* pcpu_build_alloc_info() updated to clear static buffers so that it can be called multiple times in case it's called for fallbacks. This fixes falling back to page size first chunk allocator on x86.

* sparc64 page size first chunk allocator and auto-fallback implemented. This fixes percpu allocation on systems where NUMA nodes are too far apart for the distance to be replicated in vmalloc area. David Miller is working on proper fix to extend vmalloc area on sparc64. Checking for the distance, warning and falling back should make percpu allocator more robust and proplems easier to track down.

* Init and alloc failures are made more verbose to help debugging.

Thanks.
---
Tejun Heo (6):
percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
percpu: make pcpu_build_alloc_info() clear static buffers
sparc64: implement page mapping percpu first chunk allocator
percpu: make embedding first chunk allocator check vmalloc space size
percpu: make pcpu_setup_first_chunk() failures more verbose
percpu: make allocation failures more verbose

 arch/sparc/Kconfig         |    3 ++
 arch/sparc/kernel/smp_64.c |   53 +++++++++++++++++++++++-----
 mm/percpu.c                |   83 +++++++++++++++++++++++++++++++++++--------
 3 files changed, 114 insertions(+), 25 deletions(-)
arch/sparc/Kconfig +3 -0
index 97fca46..ac45aab 100644
@@ -102,6 +102,9 @@ config HAVE_SETUP_PER_CPU_AREA
 config NEED_PER_CPU_EMBED_FIRST_CHUNK
 	def_bool y if SPARC64
 
+config NEED_PER_CPU_PAGE_FIRST_CHUNK
+	def_bool y if SPARC64
+
 config GENERIC_HARDIRQS_NO__DO_IRQ
 	bool
 	def_bool y if SPARC64
arch/sparc/kernel/smp_64.c +44 -9

69 lines not on this page · raw message

mm/percpu.c +67 -16

177 lines not on this page · raw message