Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3340050yba; Tue, 23 Apr 2019 01:57:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhgqTVCKbcQDjNGCctO5vssoXEzDKsuPidj6NMfaNZ/UxmF30uvEfjnQXvj/ntDqrfiIfr X-Received: by 2002:a65:614e:: with SMTP id o14mr23954279pgv.196.1556009866407; Tue, 23 Apr 2019 01:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556009866; cv=none; d=google.com; s=arc-20160816; b=mKWUSIr2buP2AvW0HFT5HzftQc/oRE5caHpEF9owrxZ5WkySC0B2JTvWu0Tnlz2dcj o9fKny+MXAZtyKNC57H+MZ6kJQD6TnKeUvt6dw0wqqHpNSPJolHaFLbYaO1/QVQ8JYBz Kd88cywVorL+3fRQpK1+uqSNI8YQWalR+6HqriQG8PIzKArMCT7NsKat/bxO7B+REKwi xO66C7XC1MLC/JDCpo6Mx/S7G2C1gGeBf1BRT3ap0Q7T9CcZJW00JCYH83B43mmUXThx v8mmtDJa5qF2nDZvP3j15oge2KkweP3Tr4P7ZIgEMJWb2bNRobiBJqlUgX3w05aOwiXo lEeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Vzytoljj+XSZztNSEXF/+jHuvarC7Phi+bRc5Lds+2A=; b=TDhQBkF77rInz5W0aGLI/taxXVw/pAOgvTu+/hnqPb7qmISO1Daj+R59mfL3sj3qux qRsp77GFTH/0M+AXpxgpoHdv+2+NRsylzBNvrXOx0u5+i6tSYhGJpWlgB0lMwUlev264 zKj5Ziuz3+HyBzM7jABN1qUsT4ZhIDZTLYSs2VfPWPfQ3WPi+HxbWLXfUon3H8Bjlhxa EKx7dPpxqGc/wJjeGUf3Skfio02ttDqEIXZ6EndnmhTqcPteXmEkN3FSaEaa6P2bmpXT xjCSRbiqDnE+GIXB3l/ZgTtWHJso130DOLNv1uEWGCXMHS/fbheBP1l4esYR6lXSDQHI X1Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=OY0kxQQC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si15472333ply.103.2019.04.23.01.57.30; Tue, 23 Apr 2019 01:57:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=OY0kxQQC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726553AbfDWIzo (ORCPT + 99 others); Tue, 23 Apr 2019 04:55:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46544 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfDWIzo (ORCPT ); Tue, 23 Apr 2019 04:55:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vzytoljj+XSZztNSEXF/+jHuvarC7Phi+bRc5Lds+2A=; b=OY0kxQQCWaRRFvkHxaJDDH859D doWhg6jMgGLA2qRh0WfVL/ddu4Vh2aX0cvCWc/bIv+uWFJLp72sDTev5Fv71xin+ob6VuaaOqMLiq QsHPWqnIph1yIh2nHyb6oYyiM00+ru8vQPfFBkBTWxUJ6o7624/yf80Ve9cfq5y7GXw15gsoY8vqr XtFVBZWWJ8rD7frh7Hz8E/EmqdEAN+o19CfwdEvTrJojsmmZmwI5c0II2G2J1T0NFzqMErUS5sKnx 2DSRihH4gZVdTtuParDoBhWKnqTH6ThfX/euuVzAu0Be8x3dVocjoO0Al4I1AVfng9SResQ7Zkq8p 3CgMcKQg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIrDD-0001M3-DP; Tue, 23 Apr 2019 08:55:36 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DB27329B47DCB; Tue, 23 Apr 2019 10:55:33 +0200 (CEST) Date: Tue, 23 Apr 2019 10:55:33 +0200 From: Peter Zijlstra To: =?utf-8?B?546L6LSH?= Cc: hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, Ingo Molnar , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 3/5] numa: introduce per-cgroup preferred numa node Message-ID: <20190423085533.GF11158@hirez.programming.kicks-ass.net> References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> <77452c03-bc4c-7aed-e605-d5351f868586@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <77452c03-bc4c-7aed-e605-d5351f868586@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 22, 2019 at 10:13:36AM +0800, 王贇 wrote: > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index af171ccb56a2..6513504373b4 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -2031,6 +2031,10 @@ alloc_pages_vma(gfp_t gfp, int order, struct vm_area_struct *vma, > > pol = get_vma_policy(vma, addr); > > + page = alloc_page_numa_preferred(gfp, order); > + if (page) > + goto out; > + > if (pol->mode == MPOL_INTERLEAVE) { > unsigned nid; > This I think is wrong, it overrides app specific mbind() requests.