Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5458469imm; Sun, 22 Jul 2018 23:15:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0HONX3ROnODe0Zld84OLbzP61lIAzxKq5SwqzVSvMOKmiLALPrJPj3IbpYhualNN7Zvyw X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr10904708pgn.415.1532326513011; Sun, 22 Jul 2018 23:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532326512; cv=none; d=google.com; s=arc-20160816; b=DrlYdV1KzDSZMNg5rpkMhuDrZJkHFdE4uDhtpQNGa+ww0uJuRy/PqOKHtR/netgEtI uMTJq6u1PoKXNbVYkqVa7C6ZsOdgjWj52U+V+Ai+z+DWJVFR7P2rN/23TyA9Cyaffp8A mPliZgoZHoVJanxlJyY3udqbiYEig6E2tr88Wa27KXTC5U00rXI89eLE8PkJWy4Fai4g ICVrmaPHOdklzQQ1pP0ieWGzCt5ASYU4kJIyNWYhyEuuuzABFYn1JBAm93t6lXTLBfhX CXYIhhtixMY0OQDiwr3oJ/mmx0rJYRnSHmwmt89vcqvCtb0v5l9/4Qu30VNR2D7fAJ2S qSdQ== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=KREW235picV5t1Rt0Uc6rs+5A3HIF35cNQF+yYDeejM=; b=lUQLbE+S16HfNxLoWckmu2mAZvQcUtE1fXbnmUJ3Be1d0eJ9lypgSq2gUgMsreduJ4 D1p8AmJwgL8HegMDVMW2VKBPwIEvR+LWqOYARpYBIxv9/7vF1miHY68ed3lamoUrJHnr 4vVKDqmDoeZbJ6+0V/Lr+i4/NSLZj0sPTs/jTiVxW816DUqfn7FhliZ6eAHePwA4Tpcu ZI+pcLHe0DoYO7dNykXYB/Ao/Px9uRRyeUW2vddDzAVBxFg4igdtGoBxX5Qk7ggFrpvh IYr2wWD1tyB7z9lNhjhdRMxemad61zPH2zipUc2sNli6TaW6cK0m5sjAXkjklNjd6pOn aa6g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125-v6si8292544pfh.334.2018.07.22.23.14.58; Sun, 22 Jul 2018 23:15:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387838AbeGWHNl (ORCPT + 99 others); Mon, 23 Jul 2018 03:13:41 -0400 Received: from tyo161.gate.nec.co.jp ([114.179.232.161]:35192 "EHLO tyo161.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728217AbeGWHNl (ORCPT ); Mon, 23 Jul 2018 03:13:41 -0400 Received: from mailgate01.nec.co.jp ([114.179.233.122]) by tyo161.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id w6N6DrT5006427 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 23 Jul 2018 15:13:53 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate01.nec.co.jp (8.15.1/8.15.1) with ESMTP id w6N6DrTq009060; Mon, 23 Jul 2018 15:13:53 +0900 Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id w6N6DriM032667; Mon, 23 Jul 2018 15:13:53 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.149] [10.38.151.149]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-2206790; Mon, 23 Jul 2018 15:11:16 +0900 Received: from BPXM23GP.gisp.nec.co.jp ([10.38.151.215]) by BPXC21GP.gisp.nec.co.jp ([10.38.151.149]) with mapi id 14.03.0319.002; Mon, 23 Jul 2018 15:11:15 +0900 From: Naoya Horiguchi To: "Zhangfei (Tyler)" CC: Xiexiuqi , =?utf-8?B?6KOY56iA55+zKOeogOefsyk=?= , linux-mm , linux-kernel , "zy.zhengyi" , lvzhipeng , meinanjing , zhongjiang , Dukaitian , Chenglongfei Subject: Re: [RFC] a question about reuse hwpoison page in soft_offline_page() Thread-Topic: [RFC] a question about reuse hwpoison page in soft_offline_page() Thread-Index: AQHUFNq0gQJXx38HukimJ6uYcXUta6SBQ1eAgBX4twCAABC/AIAEiokA Date: Mon, 23 Jul 2018 06:11:14 +0000 Message-ID: <20180723061114.GB26102@hori1.linux.bs1.fc.nec.co.jp> References: <99235479-716d-4c40-8f61-8e44c242abf8.xishi.qiuxishi@alibaba-inc.com> <20180706081847.GA5144@hori1.linux.bs1.fc.nec.co.jp> <7f0ff90d-578b-2096-92c0-542a490b06a1@huawei.com> In-Reply-To: Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.51.8.80] Content-Type: text/plain; charset="utf-8" Content-ID: <2755DAE82F59324FA4C63B8967DC17D3@gisp.nec.co.jp> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCBKdWwgMjAsIDIwMTggYXQgMDg6NTA6MjJBTSArMDAwMCwgWmhhbmdmZWkgKFR5bGVy KSB3cm90ZToNCj4gS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