[GIT PATCH core/percpu] x86,percpu: fix pageattr handling with remap allocator, take#4

From: Tejun Heo
Date: Tue Jun 16 2009 - 23:53:36 EST


Hello,

Upon ack, please pull from the following git tree.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc.git tj-percpu-fix-remap

This is the third take of x86-percpu-fix-pageattr patchset. Changes
from the last take[L] are...

* Rebased on top of linus#master + tj-percpu-convert-most-archs, take#3

* Dup free in setup_pcpu_remap() fixed.

* remap allocator renamed to lpage.

* Changes to cpa_process_alias() updated such that the remap handling
code doesn't consider multipage case and trigger WARN_ON() if @cpa
at that point has numpages higher than 1. Because the target PMD
page is always partially recycled, it always ends up splitted to 4k
pages and thus numpages is guaranteed to be 1 at that point.

This patchset contains the following seven patches.

0001-x86-fix-duplicate-free-in-setup_pcpu_remap-failur.patch
0002-x86-rename-remap-percpu-first-chunk-allocator-to-lp.patch
0003-x86-prepare-setup_pcpu_lpage-for-pageattr-fix.patch
0004-x86-reorganize-cpa_process_alias.patch
0005-x86-fix-pageattr-handling-for-lpage-percpu-allocato.patch
0006-x86-implement-percpu_alloc-kernel-parameter.patch
0007-x86-ensure-percpu-lpage-doesn-t-consume-too-much-vm.patch

0001 and 0002 are new ones. 0005 has the cpa_process_alias() change
updated describd above. Other than that, no notable changes.

This patchset is on top of

linus-2.6#master (300df7dc89cc276377fc020704e34875d5c473b6)
+ [1] tj-percpu-convert-most-archs, take#3

and contains the following changes.

Documentation/kernel-parameters.txt | 6
arch/x86/include/asm/percpu.h | 9 +
arch/x86/kernel/setup_percpu.c | 219 ++++++++++++++++++++++++++----------
arch/x86/mm/pageattr.c | 65 ++++++----
mm/percpu.c | 13 +-
5 files changed, 226 insertions(+), 86 deletions(-)

Thanks.

--
tejun

[L] http://thread.gmane.org/gmane.linux.kernel/844298
[1] http://thread.gmane.org/gmane.linux.kernel.cross-arch/3818
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/