From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by kanga.kvack.org (Postfix) with ESMTP id 0B82C6B0255 for ; Tue, 23 Feb 2016 08:45:24 -0500 (EST) Received: by mail-wm0-f50.google.com with SMTP id c200so221119682wme.0 for ; Tue, 23 Feb 2016 05:45:24 -0800 (PST) Received: from outbound-smtp12.blacknight.com (outbound-smtp12.blacknight.com. [46.22.139.17]) by mx.google.com with ESMTPS id t23si39628648wmt.106.2016.02.23.05.45.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 05:45:17 -0800 (PST) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id 25AB51C1DCD for ; Tue, 23 Feb 2016 13:45:17 +0000 (GMT) From: Mel Gorman Subject: [PATCH 02/27] mm, vmscan: Check if cpusets are enabled during direct reclaim Date: Tue, 23 Feb 2016 13:44:51 +0000 Message-Id: <1456235116-32385-3-git-send-email-mgorman@techsingularity.net> In-Reply-To: <1456235116-32385-1-git-send-email-mgorman@techsingularity.net> References: <1456235116-32385-1-git-send-email-mgorman@techsingularity.net> Sender: owner-linux-mm@kvack.org List-ID: To: Linux-MM Cc: Rik van Riel , Vlastimil Babka , Johannes Weiner , LKML , Mel Gorman Direct reclaim obeys cpusets but misses the cpusets_enabled() check. The overhead is unlikely to be measurable in the direct reclaim path which is expensive but there is no harm is doing it. Signed-off-by: Mel Gorman --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 86eb21491867..de8d6226e026 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2566,7 +2566,7 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc) * to global LRU. */ if (global_reclaim(sc)) { - if (!cpuset_zone_allowed(zone, + if (cpusets_enabled() && !cpuset_zone_allowed(zone, GFP_KERNEL | __GFP_HARDWALL)) continue; -- 2.6.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org