From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20E46C43461 for ; Thu, 17 Sep 2020 03:11:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 67D9C20770 for ; Thu, 17 Sep 2020 03:11:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ltKks9VB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67D9C20770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A334390000C; Wed, 16 Sep 2020 23:11:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A0AB2900004; Wed, 16 Sep 2020 23:11:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C95090000C; Wed, 16 Sep 2020 23:11:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0084.hostedemail.com [216.40.44.84]) by kanga.kvack.org (Postfix) with ESMTP id 70652900004 for ; Wed, 16 Sep 2020 23:11:37 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 294F1181AEF21 for ; Thu, 17 Sep 2020 03:11:37 +0000 (UTC) X-FDA: 77271078234.15.crook98_06010d62711f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id DCB731814B0C1 for ; Thu, 17 Sep 2020 03:11:36 +0000 (UTC) X-HE-Tag: crook98_06010d62711f X-Filterd-Recvd-Size: 2946 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Sep 2020 03:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GKghxhRLzhiu2qEyWdAXVHkgMgfdRZjJpRZm/WkUb6E=; b=ltKks9VB83KII8YUlizV4bPpRD iA1zhTL5/Kpf9GimjDqJWqFZ8LfscnshHqQzYV+axi3vd0GXpv5Ae2PC1K5iDHKorJtNBL0JQKRw9 wDn6JAY2u0o2cItqK9zfRP75bm3pkSpOT5N+OLewy3URZIT01WlEE3qx/r/8YiKh9DFARuep8UltU I+VyTDhFH2qghSIoU1ioHSP/9bXDL/oIZEyCxXs59Y9v7S4+u8KiT/IMxXbEW0aRUk0JLLiLFeRIw 0zIdIOhCeVfIUJvjslBjRPsNfLanYrAIlFXG3u6kzMiK/2UfMTq7f/6byYSElsF/dr81JQvp7B+H6 9wefTPNw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIkKW-0006l2-Na; Thu, 17 Sep 2020 03:11:28 +0000 Date: Thu, 17 Sep 2020 04:11:28 +0100 From: Matthew Wilcox To: David Hildenbrand Cc: Qian Cai , Huang Ying , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Mel Gorman , Johannes Weiner , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes Subject: Re: [RFC] autonuma: Migrate on fault among multiple bound nodes Message-ID: <20200917031128.GQ5449@casper.infradead.org> References: <20200916005936.232788-1-ying.huang@intel.com> <2fe2a22235a0474b4a3de939cc22c19affc945fd.camel@redhat.com> <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> X-Rspamd-Queue-Id: DCB731814B0C1 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Sep 16, 2020 at 05:29:41PM +0200, David Hildenbrand wrote: > On 16.09.20 15:39, Qian Cai wrote: > > On Wed, 2020-09-16 at 08:59 +0800, Huang Ying wrote: > >> static int apply_policy_zone(struct mempolicy *policy, enum zone_type zone) > >> @@ -2474,11 +2481,13 @@ int mpol_misplaced(struct page *page, struct > >> vm_area_struct *vma, unsigned long > >> int thisnid = cpu_to_node(thiscpu); > >> int polnid = NUMA_NO_NODE; > >> int ret = -1; > >> + bool moron; > > > > Are you really going to use that name those days? > > > > > > include/uapi/linux/mempolicy.h:#define MPOL_F_MORON (1 << 4) /* > Migrate On protnone Reference On Node */ > > Not commenting the decision for that name. It's uapi ... and naming the > variable like the uapi flag seems to be a sane thing to do ... hmmm ... Perhaps we could migrate to mopron / MPOL_F_MOPRON?