[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <51B8ED17.2060608@linux.vnet.ibm.com>
Date: Wed, 12 Jun 2013 14:50:15 -0700
From: Cody P Schafer <cody@...ux.vnet.ibm.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: LKML <linux-kernel@...r.kernel.org>, Linux MM <linux-mm@...ck.org>,
Valdis.Kletnieks@...edu
Subject: Re: [PATCH] mm/page_alloc: don't re-init pageset in zone_pcp_update()
> Anyhow, a reorganized (and clearer) changelog with the same content
> follows:
> ---
I made a few wording tweaks:
---
mm/page_alloc: don't re-init pageset in zone_pcp_update()
When memory hotplug is triggered, we call pageset_init() on
per-cpu-pagesets which both contain pages and are in use, causing both
the leakage of those pages and (potentially) bad behaviour if a page is
allocated from a pageset while it is being cleared.
Avoid this by factoring out pageset_set_high_and_batch() (which contains
all needed logic too set a pageset's ->high and ->batch inrespective of
system state) from zone_pageset_init() and using the new
pageset_set_high_and_batch() instead of zone_pageset_init() in
zone_pcp_update().
Signed-off-by: Cody P Schafer <cody@...ux.vnet.ibm.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists