Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp372106pxj; Thu, 13 May 2021 06:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqT2fr6VK4g0Pm9CG/eCzdVU17L5+6FlOKbxqF1g9xNoNYXhHgQ0kJJb4yDRG6LJ2h0PgK X-Received: by 2002:a17:906:14c1:: with SMTP id y1mr44958678ejc.481.1620914296980; Thu, 13 May 2021 06:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620914296; cv=none; d=google.com; s=arc-20160816; b=f3GgFKRpX9+Y6dewJyNNaD2lkqFlm95zPo1sE1ZL76AvXaMVQafsLSilDo1OOlrvTX hjadJ9YGeiL+GKR674AyeyZ3XuITihqbzY7cAljAUO6WyvOsc+rB1F1aK0nltk8Z0myM j91v+vPJYLeAULMUDpg9EEndLojoD0B7PSSIqvN9TNfsG2By/HlitTURE5i1HSEN0zFX IuP1/EImnKAWpJIwC14vvVipzqjfctDkeKVRrF7lnEEg0H4VHYvmeNVt1K0yILFXrr4Z mVvQUEPKTH3NbdzXH7ATT6OLQBAa9UdVzdOmbzX9IjtePf8k9cG11501j1Xy3/0A5sNC UdHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=sFBpRXLCDjg42WUmU84O6M6Al25ULuS8YILMgulT4vY=; b=jtMJbi/9Ef17ebw+OWQX39aJjoZ0qf6JeA+RHO+mk2kVrdLDnOTpDgd6H71HIQr5ne 0XainXS7Q/q+2RmtjrW0NbYpiDsaqhVWMhn+QzTRBzwurA7A9ZAHQ8z/evEysU3PRYwb RjxLz6a5xKlcBTs6XH28/H9TzjLJd/3hMA3wnyzqYSLrbIer3QWldS3Go2DCkxUAZPMw lTdWKkqB5GHkcoVixDvIrU47BeZJJAQysGLBzdRje+KnNYvQVp0Pk8ojRSWsuLyBzQaz sdZmqE2thUC0tkEc9FxAQ/o+gaZdzCqP44SayXcXVRHjGv/KcxbYpndmDqFfg+AVzfYX eF5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si2983877edr.154.2021.05.13.06.57.50; Thu, 13 May 2021 06:58:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234252AbhEMN5Y (ORCPT + 99 others); Thu, 13 May 2021 09:57:24 -0400 Received: from mga06.intel.com ([134.134.136.31]:50753 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234247AbhEMN5K (ORCPT ); Thu, 13 May 2021 09:57:10 -0400 IronPort-SDR: eCyfkbWqkK/J+JTmoUOg29SvaEtZO/NgZEvzZpB8BxfSPDZv3Mrhzen4Vq/K+43+nygKXnSole Z7v6+1JWJ16g== X-IronPort-AV: E=McAfee;i="6200,9189,9982"; a="261192489" X-IronPort-AV: E=Sophos;i="5.82,296,1613462400"; d="scan'208";a="261192489" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 06:55:40 -0700 IronPort-SDR: E7MsCeLURvjkO8scuNIcUFItxDAsnvhqWBHYpktm7lmYLXo6ysWw8GHdgIjK/e3A1ZeSRxH17p 1xxoRRCsMNSQ== X-IronPort-AV: E=Sophos;i="5.82,296,1613462400"; d="scan'208";a="400995872" Received: from bchunch-mobl.amr.corp.intel.com (HELO [10.209.17.244]) ([10.209.17.244]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 06:55:38 -0700 Subject: Re: [RFC PATCH 2/2] mempolicy: kill MPOL_F_LOCAL bit To: Feng Tang , Michal Hocko , "Hansen, Dave" , "Widawsky, Ben" Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Andrea Arcangeli , David Rientjes , Mel Gorman , Mike Kravetz , Randy Dunlap , Vlastimil Babka , "Williams, Dan J" , ying.huang@intel.com References: <1615952410-36895-1-git-send-email-feng.tang@intel.com> <1615952410-36895-4-git-send-email-feng.tang@intel.com> <20210420071625.GB48282@shbuild999.sh.intel.com> <20210513072545.GC44993@shbuild999.sh.intel.com> From: Andi Kleen Message-ID: <8e1cf4dd-1bb2-fbcb-4960-65db8704ec38@linux.intel.com> Date: Thu, 13 May 2021 06:55:38 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210513072545.GC44993@shbuild999.sh.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/13/2021 12:25 AM, Feng Tang wrote: > mempolicy: kill MPOL_F_LOCAL bit > > Now the only remaining case of actual 'local' policy faked by > 'prefer' policy plus MPOL_F_LOCAL bit is: > > A valid 'prefer' policy with a valid 'preferred' node is 'rebind' > to a nodemask which doesn't contains the 'preferred' node, then it > will handle allocation with 'local' policy. > > Add a new 'MPOL_F_LOCAL_TEMP' bit for this case, and kill the > MPOL_F_LOCAL bit, which could simplify the code much. Reviewed-by: Andi Kleen -Andi