mm-page_alloc-protect-pcp-batch-accesses-with-access_once.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-page_alloc-protect-pcp-batch-accesses-with-access_once.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:24:15 -0700
The patch titled
Subject: mm/page_alloc: protect pcp->batch accesses with ACCESS_ONCE
has been removed from the -mm tree. Its filename was
mm-page_alloc-protect-pcp-batch-accesses-with-access_once.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Cody P Schafer <[email protected]>
Subject: mm/page_alloc: protect pcp->batch accesses with ACCESS_ONCE
pcp->batch could change at any point, avoid relying on it being a stable value.
---
mm/page_alloc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-protect-pcp-batch-accesses-with-access_once +7 -4
@@ -1182,10 +1182,12 @@ void drain_zone_pages(struct zone *zone, {unsigned long flags;int to_drain; +unsigned long batch;local_irq_save (flags); -if (pcp->count >= pcp->batch) - to_drain = pcp->batch; + batch =ACCESS_ONCE (pcp->batch); +if (pcp->count >= batch) + to_drain = batch;else to_drain = pcp->count;if (to_drain >0 ) {
@@ -1353,8 +1355,9 @@ void free_hot_cold_page(struct page *paglist_add (&page->lru, &pcp->lists[migratetype]); pcp->count++;if (pcp->count >= pcp->high) { -free_pcppages_bulk (zone, pcp->batch, pcp); - pcp->count -= pcp->batch; +unsigned long batch =ACCESS_ONCE (pcp->batch); +free_pcppages_bulk (zone, batch, pcp); + pcp->count -= batch; } out:
_
Patches currently in -mm which might be from [email protected] are
origin.patch
zbud-add-to-mm.patch
zswap-add-to-mm.patch
zswap-add-documentation.patch