summaryrefslogtreecommitdiff
path: root/mm/prio_tree.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-09-24 18:46:01 +0900
committerTejun Heo <tj@kernel.org>2009-09-29 09:17:57 +0900
commit6ea529a2037ce662fc6bfa572b46d47407d08805 (patch)
treeb9e8721eb4edc563ae0e40500a58dfa053ceed39 /mm/prio_tree.c
parenta70c691376c7c7f94af41395848066f59501fffd (diff)
downloadlinux-3.10-6ea529a2037ce662fc6bfa572b46d47407d08805.tar.gz
linux-3.10-6ea529a2037ce662fc6bfa572b46d47407d08805.tar.bz2
linux-3.10-6ea529a2037ce662fc6bfa572b46d47407d08805.zip
percpu: make embedding first chunk allocator check vmalloc space size
Embedding first chunk allocator maintains the distances between units in the vmalloc area and thus needs vmalloc space to be larger than the maximum distances between units; otherwise, it wouldn't be able to create any dynamic chunks. This patch makes the embedding first chunk allocator check vmalloc space size and if the maximum distance between units is larger than 75% of it, print warning and, if page mapping allocator is available, fail initialization so that the system falls back onto it. This should work around percpu allocation failure problems on certain sparc64 configurations where distances between NUMA nodes are larger than the vmalloc area and makes percpu allocator more robust for future configurations. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/prio_tree.c')
0 files changed, 0 insertions, 0 deletions