From f2fad6942620aaac69d086dffa77d9b74b909e5b Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Wed, 22 Jun 2005 20:26:07 -0700 Subject: [PATCH] --- yaml --- r: 2823 b: refs/heads/master c: b7c84c6ada2be942eca6722edb2cfaad412cd5de h: refs/heads/master i: 2821: 567d804914ba585f186cd9cc9ada875081c6ff4f 2819: 1359877eed24e84dc3a5fc96e743df6317cced5e 2815: 17249d34c5ac6cfd4db8e93358382ae22ec91cab v: v3 --- [refs] | 2 +- trunk/mm/page_alloc.c | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 79114af6c987..61bb9271443a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a4936044001694f033fe4ea94d6034d51a6b465c +refs/heads/master: b7c84c6ada2be942eca6722edb2cfaad412cd5de diff --git a/trunk/mm/page_alloc.c b/trunk/mm/page_alloc.c index 206920796f5f..559336de9687 100644 --- a/trunk/mm/page_alloc.c +++ b/trunk/mm/page_alloc.c @@ -1742,10 +1742,17 @@ inline void setup_pageset(struct per_cpu_pageset *p, unsigned long batch) * with interrupts disabled. * * Some NUMA counter updates may also be caught by the boot pagesets. - * These will be discarded when bootup is complete. + * + * The boot_pagesets must be kept even after bootup is complete for + * unused processors and/or zones. They do play a role for bootstrapping + * hotplugged processors. + * + * zoneinfo_show() and maybe other functions do + * not check if the processor is online before following the pageset pointer. + * Other parts of the kernel may not check if the zone is available. */ static struct per_cpu_pageset - boot_pageset[NR_CPUS] __initdata; + boot_pageset[NR_CPUS]; /* * Dynamically allocate memory for the