]> git.baikalelectronics.ru Git - kernel.git/commit
x86: make DEBUG_PAGEALLOC and CPA more robust
authorIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2008 13:37:52 +0000 (14:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 26 Feb 2008 11:55:50 +0000 (12:55 +0100)
commit4425fcb11b61d13cb288a5d8b2a71311e2f1c8fe
treefab9504379894da8d941cc385abd071604f5f7bb
parent31859cb106109f80eabe1937004d3d804e373e70
x86: make DEBUG_PAGEALLOC and CPA more robust

Use PF_MEMALLOC to prevent recursive calls in the DBEUG_PAGEALLOC
case. This makes the code simpler and more robust against allocation
failures.

This fixes the following fallback to non-mmconfig:

   http://lkml.org/lkml/2008/2/20/551
   http://bugzilla.kernel.org/show_bug.cgi?id=10083

Also, for DEBUG_PAGEALLOC=n reduce the pool size to one page.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c