Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4024759pxb; Mon, 21 Feb 2022 10:21:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgbCWs+DpKkXOVP8cdHszd/6dbILHGAlzSqsDyQ5TTZqdxDzjOhj6ASOl+KcGVl0YaTBz4 X-Received: by 2002:a17:906:354f:b0:6b4:1449:2d03 with SMTP id s15-20020a170906354f00b006b414492d03mr17439929eja.197.1645467682652; Mon, 21 Feb 2022 10:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645467682; cv=none; d=google.com; s=arc-20160816; b=LxI6Sp72+SLRjSvtXTsQc40rOz5HID5pbHTZwHLnZ3RjsVj2q8eypDCgDY72Yq2VvS 1XBY02PLdx4sjUaLse3Xj9xlZwMXUyTAhlEpHDYevN6Os8uW4WaoHR7gxWM3t7589Zy3 npRKBNSZc7ba1HdrJu61RD6l+10gdLMOM5C1263h9GRnHmAVOusXFIAF/OI2qECV5gaZ SmVK497w9KcVdTbpvGBCeeR+B1F/OS0hsahicp1Y3IWmC8zyKDp9KY6JMsfTHDc+Qpsf GCphFlBndYBEebWfLbb3udqEWFPdq/Lxisw1Jw4D+4g5JWdF7QYzrVUX4SjeBj7rjQqA VB6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=1Ulp3mdGCaq+19tHAvS7HUchQj6Oyzg6Zw0fjXqDdNM=; b=Tr6OT4+beXi+2Y/fFJihUjJ/LTPY8kB5dfOzXVCbuJr9tZkbZUZkbim07ZITz6/JAJ r7P14H2AB00PGSB22qa/5twGkX4m+piEC/cgBLHIWXbRAFR363zM4ZCD8qXKJV8dRq+E ogTrkCCQ7y3smnxKcXfJmPhXGoAPIfGF8gqznPGMxx8Uwt7xi9JITfNO/1KQ6V+xqn3K ZL22hDUsogXx+cfWZNp3JvbCjbiDdTuhFyaa2SWeD3dJCGp+G07e1bHHZ/5Tnk/3+PDe pKJ0LwJ5URPC9ib3LdddVWr9D+uPGrYTRMxH5f7JuXsVS5iS5PXMKvN/JU064j7C+VRh Dpcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14si1467313ejs.924.2022.02.21.10.20.59; Mon, 21 Feb 2022 10:21:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347708AbiBUNT5 (ORCPT + 99 others); Mon, 21 Feb 2022 08:19:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358867AbiBUNT4 (ORCPT ); Mon, 21 Feb 2022 08:19:56 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D831EEDA for ; Mon, 21 Feb 2022 05:19:32 -0800 (PST) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4K2NCc5QY4zdZPp; Mon, 21 Feb 2022 21:18:20 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 21 Feb 2022 21:19:30 +0800 Subject: Re: [PATCH v2] mm: clean up hwpoison page cache page in fault path To: Oscar Salvador CC: Rik van Riel , , , , Andrew Morton , Mel Gorman , Johannes Weiner , Matthew Wilcox References: <20220212213740.423efcea@imladris.surriel.com> From: Miaohe Lin Message-ID: <80df0575-6f61-ccad-833a-b4f5b3d42628@huawei.com> Date: Mon, 21 Feb 2022 21:19:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/2/21 20:54, Oscar Salvador wrote: > On Wed, Feb 16, 2022 at 10:13:14AM +0800, Miaohe Lin wrote: >> IIUC, this could not happen when soft-offlining a pagecache page. They're either >> invalidated or migrated away and then we set PageHWPoison. >> I think this may happen on a clean pagecache page when it's isolated. So it's !PageLRU. >> And identify_page_state treats it as me_unknown because it's non reserved, slab, swapcache >> and so on ...(see error_states for details). Or am I miss anything? > > But the path you are talking about is when we do have a non-recoverable > error, so memory_failure() path. > AFAIU, Rik talks about pages with corrected errors, and that is > soft_offline(). Oh, yes, Rik talks about pages with corrected errors. My mistake. Then I really want to understand how we got there too. :) Thanks. >