Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp17927imm; Thu, 20 Sep 2018 17:16:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ5ZJWArheS68sTUL4Bm2l1bnq2DyEFvfI5EnRDnc3AYTFEymYoj+fCuQpeX4ryhHwoVZmH X-Received: by 2002:a62:7f0c:: with SMTP id a12-v6mr43143077pfd.257.1537489006162; Thu, 20 Sep 2018 17:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537489006; cv=none; d=google.com; s=arc-20160816; b=ZK6Xbi1RsCBObVHlnwcIRPswNnAZUtWPQCv4Simpi9oZ0cVjokdsz2tASZJHkdUWhA wk606HvWQGZDKJwF0RTKLhnb+57eexNSM/C3b1JhKutJ4nwWtVD/3MDFEUXJbm7eC1Oh yrBYXsPG2vsnUxExXzSNzVyUPkUna/PiFEkp57RD7xjBbWijTbD3Yiom/xbgzbqg00ib ZETzlTAmP022pUQuLg9q4g/Z2bA/AntDBQLEpCJXOSaZ6e9Ru7X9ZHcqP8v7IaO/wW/F BdQAbgzo3LodHHKZsXptEPRp9Ykg6+Jhpwz+7iNJ4T8+Of32FKeRPwHZkJWNSHzU0I6R hpgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=dDKmZEiJr6IFA8A4rOik5j8w2m1KN73604JXJOGBRwA=; b=NYJv5boi/QVpBoRCa2YkSFfD4vdSTAKvEiSRGVFaVj8TLu0drvGxaFNTXpRySFC2gw dkEuyPvtv7CGd7g5CNlNi5/7aMAT2mf4gm+DqDQvSmXFqQAZwigzMYlNL//Z9yki9gtX WuO7SmTA3zrrvlvInVEHvfgJsL7JmHNwqN5F3n/Blz/tH4TnX1F2qg92BXGUMuJHHsgz z7nxVW8PkklpwHHNI0FPdSX6R/OjSGsIsV8rnuXm4vPT8SvYVUApipacpkrCuBC/BYBW JC4iQjLyuo6Hnw1T/tvtkxvG6MWfMuzNI3QPjb06hxJxc6fTYtBRFAWZTrMZ5e6Z4tYl ws7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LEWePpWN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q74-v6si30414748pfq.32.2018.09.20.17.16.30; Thu, 20 Sep 2018 17:16: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=pass header.i=@microsoft.com header.s=selector1 header.b=LEWePpWN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388787AbeIUGCC (ORCPT + 99 others); Fri, 21 Sep 2018 02:02:02 -0400 Received: from mail-sn1nam02on0102.outbound.protection.outlook.com ([104.47.36.102]:36638 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725823AbeIUGCB (ORCPT ); Fri, 21 Sep 2018 02:02:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dDKmZEiJr6IFA8A4rOik5j8w2m1KN73604JXJOGBRwA=; b=LEWePpWNoki1BiI0zTLn1edNc8cLl6TGswaXtViZO2zS4G0AtJH3A3D5imWMnmAiZYKssRU0LIYnpS62LqG4H2jw44v0XM3ncp+CzNG4sCAMkP+3vJF70EsG7hp2xduiOqSA916v/pDyMHcwpMLpvIVAzCE/2O1Vfp4G0D/abfQ= Received: from DM5PR21MB0508.namprd21.prod.outlook.com (10.172.91.142) by DM5PR21MB0122.namprd21.prod.outlook.com (10.173.173.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.7; Fri, 21 Sep 2018 00:15:53 +0000 Received: from DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5]) by DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5%4]) with mapi id 15.20.1185.010; Fri, 21 Sep 2018 00:15:53 +0000 From: Pasha Tatashin To: Oscar Salvador , "akpm@linux-foundation.org" CC: "mhocko@suse.com" , "dan.j.williams@intel.com" , "david@redhat.com" , "Jonathan.Cameron@huawei.com" , "yasu.isimatu@gmail.com" , "malat@debian.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Oscar Salvador Subject: Re: [PATCH 4/5] mm/memory_hotplug: Simplify node_states_check_changes_online Thread-Topic: [PATCH 4/5] mm/memory_hotplug: Simplify node_states_check_changes_online Thread-Index: AQHUUAC/gnx6/MLUgkO0VCtG4O6fwaT54IEA Date: Fri, 21 Sep 2018 00:15:53 +0000 Message-ID: <71676241-8aa5-2b58-b2fa-706bf21b9cfb@microsoft.com> References: <20180919100819.25518-1-osalvador@techadventures.net> <20180919100819.25518-5-osalvador@techadventures.net> In-Reply-To: <20180919100819.25518-5-osalvador@techadventures.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.117.57.82] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0122;6:u0odYqlrMIxXNn6A6vlMK38/PvofhnSSxytnvrhcncnBCjig/7ugk/0qxo2w7EbX/daTH6KhBmQTZWJ/NJ3B9fXTmxG2iHNtPE3WuyfqPgOCKehT1L0yY9lQoBpprfOIFctVRVY0GAUTW3OHHwezqn43ITMyDI7tm0Mvy9tMD/0i0nLmT00hfyRQTLj7DFmPp/HslK0ifSZp28A41ViKLGRK7OUlEBSrAYVISljLESaHkKCbimapN3wipFkyz0CEFD6hExTcCKFTEj9rW05DA9CsUqnTHl+zlpZQGPbBY1JHZwbDqfW6uCyS4pe0rM3kjCeYFqJNAve3PGoHB5KXO6RV6ZJKVYJ06GdpTFuhsR/Q29jrvdh8gkmQmrKSTNLwQ+j+opjbtZtjrM3pgIROzDWh7zB/ErCpDmZLlJRWVmqJMkz301+7mgAw6sifnw9TWq7Pu6bjzGEFZSpESZ/pFA==;5:K4Y4+y56Rc6AkJd2rA7TkoWD9/f4WQhzYCJ92TPvsVmkVJJZp9Md2uSbPHlZnSgU7iiSQXAJ9uQvnz0Q+dktgA36ylNSHXK+2OrAB4AKVbGLoM/CWsaxa1J/lBPPSRJRRxZh/E63igOjN/a0CXUl8pPzwxITtULz9kCifACYvC4=;7:6bFmKdnz0YlUdMoI5CoWKcPA+PJg+Q+E6g49gY3b52p7W8N+5F34TxdX5jmR8Lr/kVXNs1OqRw2gLj4won4sSZvRP5MCYvkO1/2limfmZ88Zt3rs4iD783vjU1jnfpy7T0kMek5GHF52zjoQ/kZ+pbZ0xK2Bzt5JoE0ECXZwaD9JE8ACkCE+01B6PzXHdGmExzhVMf6cFzj8x6UFxvLJIlywabE4k3K1QGjVwh6OM97MtZi2I1qyZECmKTlmsgzf x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: a4c6e882-fb2c-4736-3ebf-08d61f5764bd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:DM5PR21MB0122; x-ms-traffictypediagnostic: DM5PR21MB0122: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(209352067349851); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(2018427008)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991041);SRVR:DM5PR21MB0122;BCL:0;PCL:0;RULEID:;SRVR:DM5PR21MB0122; x-forefront-prvs: 0802ADD973 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(346002)(366004)(39860400002)(396003)(376002)(199004)(189003)(476003)(6512007)(31696002)(22452003)(4326008)(72206003)(86612001)(86362001)(36756003)(53936002)(5660300001)(39060400002)(3846002)(99286004)(6116002)(97736004)(81166006)(316002)(81156014)(71190400001)(71200400001)(2906002)(14454004)(10290500003)(66066001)(478600001)(2900100001)(256004)(105586002)(2616005)(26005)(106356001)(10090500001)(305945005)(6246003)(446003)(11346002)(8676002)(6346003)(6486002)(31686004)(186003)(8936002)(5250100002)(6506007)(53546011)(54906003)(110136005)(2501003)(102836004)(68736007)(7416002)(6436002)(229853002)(7736002)(76176011)(25786009)(486006);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0122;H:DM5PR21MB0508.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Pavel.Tatashin@microsoft.com; x-microsoft-antispam-message-info: FuU/ICGwW7v5rWALT0yxA5E0h3zMWn74SVsnELUsIvVmn9Td4fPqrXRtB5MHkBxdelo1d9riSaDez4LpGQeRwWFl+p5+K2Yxz5XqG01sbnbOiEFWvmWoie8BCkVR/rc1KcbNg9lvJjE49o4ZuwmSVhMjnYvNKDPCpuTXmFWRm2HRiv31Qo+TgUtVVVv6ky8uaEqLgZTYu3cC2wzw8nM8Wf0MyyByfUhCu6ghivm0r5sxo++7szQfLvqumNgAh5SGJk7uH4Nc3QjI/GRqJiamrxqDgYjlKgYzId6QSIoF42JCDxiAR0Es+p7yB7OEv/iHsiAIk7gT+x67g+Vv0+pSMdrRGo5Fgjl9a0aSCZmb+mo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <6DC188685ADE26458591625DF1332AA6@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4c6e882-fb2c-4736-3ebf-08d61f5764bd X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2018 00:15:53.0302 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0122 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvMTkvMTggNjowOCBBTSwgT3NjYXIgU2FsdmFkb3Igd3JvdGU6DQo+IEZyb206IE9z Y2FyIFNhbHZhZG9yIDxvc2FsdmFkb3JAc3VzZS5kZT4NCj4gDQo+IFdoaWxlIGxvb2tpbmcgYXQg bm9kZV9zdGF0ZXNfY2hlY2tfY2hhbmdlc19vbmxpbmUsIEkgc3R1bWJsZWQNCj4gdXBvbiBzb21l IGNvbmZ1c2luZyB0aGluZ3MuDQo+IA0KPiBSaWdodCBhZnRlciBlbnRlcmluZyB0aGUgZnVuY3Rp b24s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