Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2128560pxj; Thu, 20 May 2021 00:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfe8twno7mkWRBXR0CC0xnbbMoqUCOc7eKCBdqv3LHGv0pi/89+/yP4N1veKvBg6joGb26 X-Received: by 2002:aa7:c0d0:: with SMTP id j16mr3392820edp.324.1621495118709; Thu, 20 May 2021 00:18:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621495118; cv=pass; d=google.com; s=arc-20160816; b=AT+KBS33Ev5WgvEpiMQOing5BmPC0rHqV0KwgfzTo+gtbdjiHYiIPB+VMAeqU+E91W mRE9OLxJhpo8GrcwSB2PNNRuULhSou8BBBXNRZ30JRT1VhiCibjbPihCI2HpAdxGgB5a +MY91haKe07ceaNH3J97oeurBjf4XXwK7W7fON24C76v/QueskpvO6GBivNG5S97Pg9M LJkP3oVuWHM+saeLqgoa2wVix6fjc8sX0FjY658mcGbppMjpLmSKyrXw3KLmLsQxO8OU GzHY1at+L/WHmmjfAxxeqN5q7QqRwzFxbAXRCjT9GbGLIuJ+2HdBtQTtOZmD8hxapDWI 3/qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=9CfEF9npt/SVB75n5pRsr5Qm18wls/XBE98od1lqryc=; b=tj57OtRti4iWgFORlg8SEzez1xYDCh/T2/qz29Dx6GbC5W0H09nmfXmWZzytZZZw/x Iv+9keBxMI+yl656s0DKK/isb0QHvXbzZJGLpYf2t4TWE+tpQQERRMKQRCcJiOLLgv+9 EelNceBKHvmoI619NroPPfbUa084PTBX1hTStf0SZJcrL+TIExRPn10s6zwE3FcoWoL4 szABwDuKanrwpKY+4pU6PL9P486GyoSLFT23/hUx1iSpKY/M9g0bO0JV2Auqcb/PT8pT 843AfcLIUreFc4JUK09DdmIAtXadl8aH5Mf1+IbNwwUzIP8KdeAmTYs7PUlUWmmK2Mmg d5hg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nec.com header.s=selector1 header.b=RONDOzHV; arc=pass (i=1 spf=pass spfdomain=nec.com dkim=pass dkdomain=nec.com dmarc=pass fromdomain=nec.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si1245001edb.315.2021.05.20.00.18.14; Thu, 20 May 2021 00:18:38 -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; dkim=pass header.i=@nec.com header.s=selector1 header.b=RONDOzHV; arc=pass (i=1 spf=pass spfdomain=nec.com dkim=pass dkdomain=nec.com dmarc=pass fromdomain=nec.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbhETHSl (ORCPT + 99 others); Thu, 20 May 2021 03:18:41 -0400 Received: from mail-eopbgr1400059.outbound.protection.outlook.com ([40.107.140.59]:26784 "EHLO JPN01-TY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229534AbhETHSl (ORCPT ); Thu, 20 May 2021 03:18:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O3CtdtQ9Iw154+e9xuJSLTZeBRHaXXp08UaDsftt7r24J+Vq7JNmBAZgPfnesGfCzlKzddFYI7kfI3BLOZEgEAFdyjyMLx2yQTD5XfvmKsc9mJk0yd0dcujHkESYUwVu3Xf9bReW3DyCPizh5/tRHbiYtxHiBuJemyi8uHPR3vFTjcvy84lTUhFjKfeCSVXDjvaYpOeEjFtRIZfpFVu4bt22A8S3sSLQ6sMEs4Av2ST4ej5EE92Ib/NmN85z1UGpfOqOTcFBqJeM/7ZOWy4K8gMkk/UW3MHpkmpCsgq/odNSjZ5vw8d606a91P5Hh8JD21/hGy3xakasp/D1JLFSiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9CfEF9npt/SVB75n5pRsr5Qm18wls/XBE98od1lqryc=; b=hpM5I9T1lQZBbBiarD4P4xqpl9RV8u4M7INHTSyuejJ1/yHauDCXn0F44CjDiSs3ZSr7kPoqwoTa3mNVx9hMXoSndyYdSsy4EYarMlNNWtUj1eHlH4n7yK+D7rer4dBWYJ92pEPxgq7HptwRJqDAtBWJuQ80lMbpt/h8qcW6b/+VBzr5lg83XzeQV9GJPNInxY7tnloPVGXkPcl6mDEVqxp1l9hYzSI8/Bb82PqhVlQCTajy+xGcT7m8OI7kn5i2FGlInj76eOUsSwe6s/ElBSAJoHcRletdhED0ZnTOnxApK0QPTufelA/XLbX0V/8V4LfsRkJs4I9H9BUoPbxGOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nec.com; dmarc=pass action=none header.from=nec.com; dkim=pass header.d=nec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9CfEF9npt/SVB75n5pRsr5Qm18wls/XBE98od1lqryc=; b=RONDOzHV1fgJ+DhXGK5SGhC7D1ZxfrKI/kRcTP72DPXSV1jhiGP5xXKp7NbjjQZrCQV72PuzpLSx5twzpzJaMoT7nBcjwXlspkWzwiABnFMcSw8HjdoOwMbQJ4pVd2FaHoPoDQOj1uAm8xboJlneVbRznuIB/4Yef+iYU1YKEgo= Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com (2603:1096:403:8::12) by TYAPR01MB4415.jpnprd01.prod.outlook.com (2603:1096:404:121::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Thu, 20 May 2021 07:17:17 +0000 Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563]) by TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563%6]) with mapi id 15.20.4129.033; Thu, 20 May 2021 07:17:17 +0000 From: =?utf-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPo+OAgOebtOS5nyk=?= To: Mike Kravetz CC: Naoya Horiguchi , Oscar Salvador , Muchun Song , "linux-mm@kvack.org" , Andrew Morton , Michal Hocko , Tony Luck , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5 1/2] mm,hwpoison: fix race with hugetlb page allocation Thread-Topic: [PATCH v5 1/2] mm,hwpoison: fix race with hugetlb page allocation Thread-Index: AQHXTDtjI+1UlcXho0eIycDZj0ORBKrrZS6AgACSr4A= Date: Thu, 20 May 2021 07:17:17 +0000 Message-ID: <20210520071717.GA2641190@hori.linux.bs1.fc.nec.co.jp> References: <20210518231259.2553203-1-nao.horiguchi@gmail.com> <20210518231259.2553203-2-nao.horiguchi@gmail.com> In-Reply-To: Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=nec.com; x-originating-ip: [165.225.97.70] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 99a14e9b-2e46-48e3-2b8a-08d91b5f4cfd x-ms-traffictypediagnostic: TYAPR01MB4415: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lPC3y8C6fmDm9686bgDVQBsPjAotDZXIQpC8E4ueJbYvZ57sjl9Hwgx/DDUc3XHpb+x8wsgGtX6/D3R6F5FUvPPX9Z2Wtf1L1t3c1/tLSg/thGlB+ecNCVwEtU34eEv+BPg8XBTjZKVwBEhU3KBou6viCaDGv+miJmcfwf9pmaRDBeOd81nsryFjfvAr17w7FCpI5bT9zydIudrGRqbV2tRj/uMdNQkNz9dNSXFPvj87UZR65ZF3ibTjqwevEnRLOrWTv/Z82PY8WJXx7PX2Dqp++SvmBoBbgMwvkN1+Lsx2vISpsoWiIBuEf5PkPfznpvXlMOVlK4xMo8zmLQqqID0x41EnyZpWz92XGQiesWeHUlMq/iu2KX8g5OAuM11gysJoelbxYLdb25njP75q7KkDuhPTZV4uyKkrNYd4SS1Q/FIsXVWvhXs5KeyAgOYkn3psZf9xJ9gfP1Ayp10tpLBRZfL5cPMiZbu+Gxd57Hdj3sTjNqdg5lVFEM/9hxOChgrFd4XO+BobKM/1WlkxYyd0riLuKcBs7CRIG7IRhcXFb05fNN+jgNTO/PmWQUh67wMbbh9/AO5yYSkVT7AyvLzYpuBubBCiOSj6lrouliM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY1PR01MB1852.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(346002)(136003)(376002)(39860400002)(396003)(83380400001)(9686003)(6512007)(86362001)(1076003)(2906002)(5660300002)(6916009)(85182001)(26005)(38100700002)(122000001)(55236004)(53546011)(6506007)(71200400001)(54906003)(316002)(6486002)(8676002)(33656002)(66946007)(66556008)(4326008)(186003)(8936002)(478600001)(64756008)(76116006)(66446008)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?Zi91bGpjbFNkOFlJZ1NZNHF6L1pSbHcxelBYYVk0RHR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E86DDC4DA9D19AC87B2E5A0E@jpnprd01.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nec.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY1PR01MB1852.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99a14e9b-2e46-48e3-2b8a-08d91b5f4cfd X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2021 07:17:17.6499 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e67df547-9d0d-4f4d-9161-51c6ed1f7d11 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Z+XVjpl8ynN9vo9mAvOMSoyj6/BRkZw4F8BFcn0HCYXFOe/P3zJqE2qPrw4X7eFshVAlfnSUgAMy2EEHWPDMiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB4415 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCBNYXkgMTksIDIwMjEgYXQgMDM6MzI6MTdQTSAtMDcwMCwgTWlrZSBLcmF2ZXR6IHdy b3RlOg0KPiBPbiA1LzE4LzIxIDQ6MTIgUE0sIE5hb3lhIEhvcmlndWNoaSB3cm90ZToNCj4gPiBG cm9tOiBOYW95YSBIb3JpZ3VjaGkgPG5hb3lhLmhvcmlndWNoaUBuZWMuY29tPg0KPiA+IA0KPiA+ IFdoZW4gaHVnZXRsYiBwYWdlIGZhdWx0ICh1bmRlciBvdmVyY29tbWl0dGluZyBzaXR1YXRpb24p IGFuZA0KPiA+IG1lbW9yeV9mYWlsdXJlKCkgcmFjZSwgVk1fQlVHX09OX1BBR0UoKSBpcyB0cmln Z2VyZWQgYnkgdGhlIGZvbGxvd2luZyByYWNlOg0KPiA+IA0KPiA+ICAgICBDUFUwOiAgICAgICAg ICAgICAgICAgICAgICAgICAgIENQVTE6DQ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