From: akpm@linux-foundation.org Subject: [merged] mm-mempolicy-fix-numa_interleave_hit-counter.patch removed from -mm tree Date: Mon, 16 Oct 2017 12:55:24 -0700 Message-ID: <20171016195524.JXoLI7yeD%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:55518 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbdJPTzZ (ORCPT ); Mon, 16 Oct 2017 15:55:25 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: aryabinin@virtuozzo.com, kemi.wang@intel.com, mgorman@techsingularity.net, mm-commits@vger.kernel.org The patch titled Subject: mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter has been removed from the -mm tree. Its filename was mm-mempolicy-fix-numa_interleave_hit-counter.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Andrey Ryabinin Subject: mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter 3a321d2a3dde81214 ("mm: change the call sites of numa statistics items") separated NUMA counters from zone counters, but the NUMA_INTERLEAVE_HIT call site wasn't updated to use the new interface. So alloc_page_interleave() actually increments NR_ZONE_INACTIVE_FILE instead of NUMA_INTERLEAVE_HIT. Fix this by using __inc_numa_state() interface to increment NUMA_INTERLEAVE_HIT. Link: http://lkml.kernel.org/r/20171003191003.8573-1-aryabinin@virtuozzo.com Fixes: 3a321d2a3dde ("mm: change the call sites of numa statistics items") Signed-off-by: Andrey Ryabinin Acked-by: Mel Gorman Cc: Kemi Wang Signed-off-by: Andrew Morton --- mm/mempolicy.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN mm/mempolicy.c~mm-mempolicy-fix-numa_interleave_hit-counter mm/mempolicy.c --- a/mm/mempolicy.c~mm-mempolicy-fix-numa_interleave_hit-counter +++ a/mm/mempolicy.c @@ -1920,8 +1920,11 @@ static struct page *alloc_page_interleav struct page *page; page = __alloc_pages(gfp, order, nid); - if (page && page_to_nid(page) == nid) - inc_zone_page_state(page, NUMA_INTERLEAVE_HIT); + if (page && page_to_nid(page) == nid) { + preempt_disable(); + __inc_numa_state(page_zone(page), NUMA_INTERLEAVE_HIT); + preempt_enable(); + } return page; } _ Patches currently in -mm which might be from aryabinin@virtuozzo.com are mm-remove-unused-pgdat-inactive_ratio.patch kcov-remove-pointless-current-=-null-check.patch