lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1466242457-2440-1-git-send-email-wwtao0320@163.com>
Date:	Sat, 18 Jun 2016 17:34:15 +0800
From:	Wenwei Tao <wwtao0320@....com>
To:	akpm@...ux-foundation.org, mgorman@...hsingularity.net,
	mhocko@...e.com, vbabka@...e.cz, rientjes@...gle.com,
	kirill.shutemov@...ux.intel.com, iamjoonsoo.kim@....com,
	izumi.taku@...fujitsu.com, hannes@...xchg.org
Cc:	linux-kernel@...r.kernel.org, linux-mm@...ck.org,
	ww.tao0320@...il.com
Subject: [RFC PATCH 1/3] mm, page_alloc: free HIGHATOMIC page directly to the allocator

From: Wenwei Tao <ww.tao0320@...il.com>

Some pages might have already been allocated before reserve
the pageblock as HIGHATOMIC. When free these pages, put them
directly to the allocator instead of the pcp lists since they
might have the chance to be merged to high order pages.

Signed-off-by: Wenwei Tao <ww.tao0320@...il.com>
---
 mm/page_alloc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6903b69..19f9e76 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2412,7 +2412,8 @@ void free_hot_cold_page(struct page *page, bool cold)
 	 * excessively into the page allocator
 	 */
 	if (migratetype >= MIGRATE_PCPTYPES) {
-		if (unlikely(is_migrate_isolate(migratetype))) {
+		if (unlikely(is_migrate_isolate(migratetype) ||
+				migratetype == MIGRATE_HIGHATOMIC)) {
 			free_one_page(zone, page, pfn, 0, migratetype);
 			goto out;
 		}
-- 
1.8.3.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ