Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3233635pxj; Mon, 24 May 2021 01:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc6qq5CmNvtGT3+E3RdZ0XD2uojoY244zFCPtO08dhSqE1NXCW0VHiXFdmV0JMvP2E02q5 X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr22573601ejc.292.1621845827369; Mon, 24 May 2021 01:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621845827; cv=pass; d=google.com; s=arc-20160816; b=t/d9KUovpGGANslKppxgEYPWJne+fISLFay89lC42PKc0HaenZrtUjUkvXUhI3yx6e cMGD4X1KOyUKG29+ha5pON3ECZtlGIpkqA7ksZUAhs2oclzSblu74rw0Utvc5xgvL5kB ter3fnZjWehvxONJP3Nu5FeguFhLxERQyaGFR3QWG4XtVm4SMvJ0R6Si/r7yJdhk151r bqQyFrx9vuLGToLKvbA0LXHtwa2ML7m4Ix4YFp/BhjULsGrHRa4YZgFx0hGnkXoD/e4o 3kqfW2DsxtZexxeMsy77sEQQI+uLu0uFW9a+hwI/gdgNuj49mKNtei1GgDOR4cLkeztL CPzA== 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=7CyAXyxgrl6pxnDkjbzvKHZAiReEf+3SeNrEDeM0OD4=; b=IZskk4sbjVRYbQd0hWznzCaOqYwGO40b67ufjYNmK6HUEGC+O8KUY7eXx9BKgXwNwV Atrt0UGdsQIr0BPsxKhDIpJyDF/k02Y/ElmQjQhJaD4GaOmu2y49f6m/T3TKmwNZOI0R Tzt6o7IiXfKIbh0Y3ghrQE2+Zi33a+o4CqzDYWMdQoiy3iCQzjFDMYzqdoQHlj8muDZu Whmm+0viQ6t0ADvUraGNbYfnfj/CAvOkqte53sfliiRSmbqPc7Iw62cNwd13mx/d1SaX 6Lj+LywOHpLPfPg7HU/YnpXZUc4QsEeLWqQc53BD874KhKScEd4T6uQbOgCiwvQwrrEn r2SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nec.com header.s=selector1 header.b=i+d7mjYC; 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 v9si8276283ejh.703.2021.05.24.01.43.24; Mon, 24 May 2021 01:43:47 -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=i+d7mjYC; 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 S232387AbhEXIoE (ORCPT + 99 others); Mon, 24 May 2021 04:44:04 -0400 Received: from mail-eopbgr1300074.outbound.protection.outlook.com ([40.107.130.74]:19828 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232318AbhEXIoD (ORCPT ); Mon, 24 May 2021 04:44:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jxMtkt2A3+G2hXpTxc2rn/YdUnfLLyJLtF1r99+VrnO5PU1WEZ8WDdGrBCo/bFpE3key2nFh7J/IfBpeR86mPFId4nrnWCgmjCD2Q5JeZm1xCvumyFa+e88arArCPidtZv2a1/yBOGDpLQne7KqnLGadvbuxO1YcDftnLIq0b/JSIgFB5RawG+OQkXUcisusOvgCSezpKr8te1ovhZ6gRSFGoqTYid4vwC3EklbR9wgZjPqdAfkK6g2ZXcCG6MkGGxvUGvbnEjAM1Rhq6Rr9R4VLr5KXtCRLOY2QG20LfeNfzTQPIHHj66YPUBLStuQ3y2exeVu7ansZ6OSkI6fV6g== 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=7CyAXyxgrl6pxnDkjbzvKHZAiReEf+3SeNrEDeM0OD4=; b=C1antTxaRDO1FTFib0/COrsJvp15LbKdLh3xxl3XowtbnniXonbIXQN5qQnaQk1rjlev9TuADm9NFxDAKvq9O/k25C8SWr1hBlx5I78RL2O8Q/VqAclJcFeQBBzN8muJ1WuT1if3Sl639JlD0q7fRO7CPwI/j6adxiMgL3uvX5r93EwYP4fc0mtItuneX1FrBkvIyOYqVLlMmDiZ63ffmyIUAognjfwUMEX5tP8vx0ikD+Bwkz+qsMKfoNXaTYENpvb7LW9o/tPe64F5fsGRZ94wzJ/s2joDY3HmmTHZaEJ2/YHlf+Yyw690QVhVec0Fqj50X/LxTYZvCenEo2UhcQ== 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=7CyAXyxgrl6pxnDkjbzvKHZAiReEf+3SeNrEDeM0OD4=; b=i+d7mjYCwU5kNgl4Ak/DEDo70B9kOzJI5qMuPEJQLBDDYQ2Ika59gy4eGa9nrbMe7+/gIUYozvqktImhbFVbp0PIalUBQ5QAaksN+wqPjV9+0QgTvb0AH5MFmflx1qXYVekbV6VIN6h0h41qArrMd6UUFEsJmd74KphyBWJCSbw= Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com (2603:1096:403:8::12) by TY2PR01MB3402.jpnprd01.prod.outlook.com (2603:1096:404:d2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Mon, 24 May 2021 08:42:33 +0000 Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563]) by TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563%5]) with mapi id 15.20.4150.027; Mon, 24 May 2021 08:42:33 +0000 From: =?utf-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPo+OAgOebtOS5nyk=?= To: Andrew Morton CC: Naoya Horiguchi , "linux-mm@kvack.org" , Tony Luck , Aili Yao , Oscar Salvador , David Hildenbrand , Borislav Petkov , Andy Lutomirski , Jue Wang , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5 1/3] mm/memory-failure: Use a mutex to avoid memory_failure() races Thread-Topic: [PATCH v5 1/3] mm/memory-failure: Use a mutex to avoid memory_failure() races Thread-Index: AQHXTe21Fl0BqThmUEiRngoaL9uLIqrwEkYAgAJDVwA= Date: Mon, 24 May 2021 08:42:33 +0000 Message-ID: <20210524084232.GA3203898@hori.linux.bs1.fc.nec.co.jp> References: <20210521030156.2612074-1-nao.horiguchi@gmail.com> <20210521030156.2612074-2-nao.horiguchi@gmail.com> <20210522150900.39d6832a03c5f772911c5b6d@linux-foundation.org> In-Reply-To: <20210522150900.39d6832a03c5f772911c5b6d@linux-foundation.org> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux-foundation.org; dkim=none (message not signed) header.d=none;linux-foundation.org; 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: a92df197-ef8f-4c92-8f04-08d91e8fdfd7 x-ms-traffictypediagnostic: TY2PR01MB3402: 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: 0Xm3YOlRzQVDxLtJgzCZg9j5polzt9M282odDqNqEL/Z7/c+wlk9rX4X++QgSb7nOsXlY7wCTF8+DgVcXFz3142MgHFclk3+bLC7gqFX3y4iXKwyEWfrdTQ9QLTzb5LquzcAcZGqDkzLEPBxfeG7w79vTBIuTO9Q/wO1DqZeGQrN4QaWTqRNLjvZ3BCK4yBka9nOpoOi4SU5zjZmHsOyyk1I89XdKk2O+COEJJLSP6GUC0fHc3uIFyubkOMTJ+0ziOK+plRt0jUX3VTQ6Z/5rjAB9dt7eg9z4e+T1mkfVhZEQ78Ske5LjUViOr+t/zWjKQib8HnaexzA3ucRo2banqMi/EyVFrkd4a3L1+qrrpp8Yj6WKv93oiPjJlGrxICgSS+udolOAWo2rGitcp6NEaRAsKZDtdAdEMcSGqUCV/Dx5tgUvjrww9ugRzcQ8W9YYfZZKAg9mJN7ry7oLVNaymD+qlaXCBq93kd1HUz052vRDjDTZdT7cCvLtFoMJo48a5B5Cav7m0D35tJmdTTsf7deSjum6YAVQzQH2LgS2f3+O1lRSpe65+hcPNfGPQqSBj7K60nuO73fxLCcjtRS2Fq7CICWinlD+eS+aIlI53M= 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)(136003)(376002)(396003)(346002)(39860400002)(366004)(83380400001)(122000001)(6486002)(6916009)(54906003)(55236004)(66556008)(66476007)(478600001)(64756008)(2906002)(66446008)(71200400001)(76116006)(66946007)(6506007)(33656002)(9686003)(26005)(6512007)(5660300002)(8936002)(186003)(85182001)(4326008)(316002)(38100700002)(86362001)(7416002)(1076003)(8676002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?N1ZLQUFQcVFpTCtVYXo2RzYrOE1jNGtmMEtGYjlFdEQzdGlsN1p1YzdnY0cv?= =?utf-8?B?ci9qVUZTTDZYS0I3d2ZiRG5FSjVHQ011T1ZzVjVUZlpJaGxGQThGaG1MMy9Z?= =?utf-8?B?eVZlUjhmQUNaYTB2RUdkU1hMTG43cUhCR2J0a2lZVGxHN1k4MENDZDJqa3BK?= =?utf-8?B?QVIzNHh1RDVpcVZHUEJMUzVuSWNZQmVVajFncEpqcFAySEg2ditqTlBPTS9I?= =?utf-8?B?L3BnSndwQjF2SWZSYmZBUDdrV0NzVkVqdEpOTEVnQ0FwWE0yOHRXN0tBSlZL?= =?utf-8?B?SVRRYW04RXFZT2RYdEYyL2RLR3F5cWJIZ3kzOHM5R2c5M3lPNnJyOCt6aENk?= =?utf-8?B?b2t0TVlVbDN6bkFob1paRjFycjRlcEZGTHgrVzdvV0h1T1dxWHVvQXhmNitQ?= =?utf-8?B?NXE2QzNablRUMnUwQ0pOSkpzTXMrYndBc1N1U0lUYTE3UUFsWStIbVp5VW5l?= =?utf-8?B?L2dQc2FTMDBpRHdQNjJ3aXdxUHIySGV0Qk95YUNGdUdsODE5T3hHdWRVNXRU?= =?utf-8?B?MU5kWk1STG5QbTBlTWtHWnEyQnB0KzgwVE5od0xzc1BlYVpGcnA3K1lJYlg4?= =?utf-8?B?RWtxWDh4bThWdVZUdWJyanBYS3hGalpCRktlbzdvaURoSCtqWkZTR1dvdmZa?= =?utf-8?B?U3NBeGNJRzZpQmNyaTNrVHYwdnV5WVRRcVU1NVRjcTh3NnV2a1JrK0dEcEQx?= =?utf-8?B?cXVHWFhJd2xkaHQ0dm4vL3Z6K2tNNEZtOGkrY05SQXl6RXdmSUZEZlltQjV2?= =?utf-8?B?SEFvaXV1WXh4RW9MUkQxRXlpZlVtTjF0S3oyRUNP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RmJTVzM5ZmNhWmcyMzNkdStDa0lT?= =?utf-8?Q?PNv4X7E4yX7f865Gv7PRxjGXMLLGZpwtLq1Nots?= Content-Type: text/plain; charset="utf-8" Content-ID: <2645101AB24FE64CA905379344702CD8@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: a92df197-ef8f-4c92-8f04-08d91e8fdfd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2021 08:42:33.3219 (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: 146amvcirfECslckk5ugZJ+WL1wXpcHMG5kPlwoQFTX6SWpdt83n3R/zfNJrdH4lNySXRVEi7AlEzTrU6BDacg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR01MB3402 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCBNYXkgMjIsIDIwMjEgYXQgMDM6MDk6MDBQTSAtMDcwMCwgQW5kcmV3IE1vcnRvbiB3 cm90ZToNCj4gT24gRnJpLCAyMSBNYXkgMjAyMSAxMjowMTo1NCArMDkwMCBOYW95YSBIb3JpZ3Vj aGkgPG5hby5ob3JpZ3VjaGlAZ21haWwuY29tPiB3cm90ZToNCj4gDQo+ID4gVGhlcmUgY2FuIGJl IHJhY2VzIHdoZW4gbXVsdGlwbGUgQ1BVcyBjb25zdW1lIHBvaXNvbiBmcm9tIHRoZSBzYW1lDQo+ ID4gcGFnZS4gVGhlIGZpcnN0IGludG8gbWVtb3J5X2ZhaWx1cmUoKSBhdG9taWNhbGx5IHNldHMg dGhlIEh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