x86: make DEBUG_PAGEALLOC and CPA more robust
commit92cb54a37a42a41cfb2ef7f1478bfa4395198258
authorIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2008 13:37:52 +0000 (13 14:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 26 Feb 2008 11:55:50 +0000 (26 12:55 +0100)
treefab9504379894da8d941cc385abd071604f5f7bb
parent1ce70c4fac3c3954bd48c035f448793867592bc0
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