Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3923632pxb; Mon, 21 Feb 2022 08:23:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqvqx0Tadp6XRnCBfsFwoR2auBx06NFBa+PWZ4nbibyZqJnJ0GgIwV2cTjQNcovFxvh3tU X-Received: by 2002:a17:907:9870:b0:6d0:ebb7:d4e1 with SMTP id ko16-20020a170907987000b006d0ebb7d4e1mr9373086ejc.471.1645460629287; Mon, 21 Feb 2022 08:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645460629; cv=none; d=google.com; s=arc-20160816; b=DgHiSI0zU0FGm72QQbA8ElN6CeVrW6Frjc/SAmrTf3svx/uW5TJQiQjzHqdp5lQQq3 3yspZ3Rmr9DovFT/PXM3lQD9hJfcu29GFUMhTFTNU49EvEvuhdAMLPtiE8TRKh0f7bLh JQPcMNqRsSJnCa2/fse5Tj+T8Sn1NQRNs0cxmM4jFcs1N8u1ypVev12a+2a8EQH96bpN cPapkl+RqFcr45DarkkJzlAXkrRZZQDXTDMQ8uTPrKdJNWF4JDNhVl0TIRBXFyGm6Huc jH3vp0/vHqQfhhcltWI1AI7AYOp2Vn4tOXlh9qy5YS4Ilksgpr7DFF/+g1ctwymoQ6KI F0yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=iS9TB+9bv2dpVoCm6dvoUUoXX7bo60stwGrwBo5dMNU=; b=QVT0l6kC73wvHhYdPQ8XE/yyYcVyEFqbvRUUqdonqomWcQ4hRTVxkN4zLtNXyj7yop s8ARRDo0gOM8tE7HNCQhxUPsDd4ju5VleUA0IyrCSIvUTm0MJ0X6PPaFdaBP712XKUvJ WmpobAks4tjUIN4Rd8GqCLRTQY/qbQ+k49lMoNeuIru9b8OXvmSSQ45dHCYT6JcwrWfc CUDFjSzDGkn8v4hhF1PV0YFsTmtitBFHxalK7QT4AF4OPPK3aa/YzdksfUv4IBLvZOu4 eyC7J++HIr+RZtGj8DLCutZkum+obWa1A7B4OJNqcvSV+87Pb7pA7UDZWMm6IUQfUp6j C7dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aVw5Npw7; dkim=neutral (no key) header.i=@suse.de header.b=IpjMOS8u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13si11572555edj.526.2022.02.21.08.23.26; Mon, 21 Feb 2022 08:23:49 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aVw5Npw7; dkim=neutral (no key) header.i=@suse.de header.b=IpjMOS8u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358366AbiBUMzS (ORCPT + 99 others); Mon, 21 Feb 2022 07:55:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233385AbiBUMzR (ORCPT ); Mon, 21 Feb 2022 07:55:17 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BCAE1C10F for ; Mon, 21 Feb 2022 04:54:54 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id ED913210F0; Mon, 21 Feb 2022 12:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1645448092; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iS9TB+9bv2dpVoCm6dvoUUoXX7bo60stwGrwBo5dMNU=; b=aVw5Npw7aazaQTjASzY+jOYJ0yq5iu1fgcvlaMMEwj/i4COLTzocA6HNcYbnJTx2Oz5ZRV dr5ODB9pD43QAfjEnC5uKc5Z2bZnY1EdCjq/wz07bE38n+nSAT8dTKSx3URVeE4P/K8cGi z8OI5XrCMe6VJNTVAL+Xf+tsQCkSC8g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1645448092; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iS9TB+9bv2dpVoCm6dvoUUoXX7bo60stwGrwBo5dMNU=; b=IpjMOS8urfYewEgNnbCyfHGZkNwQglOdbWRvL0JBNJQbM9LWEn2QC5g4BOuSOfIayj/X0y uYbymLkyRnG9QLDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6EF2113AD5; Mon, 21 Feb 2022 12:54:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8aVLGJyLE2IgcgAAMHmgww (envelope-from ); Mon, 21 Feb 2022 12:54:52 +0000 Date: Mon, 21 Feb 2022 13:54:50 +0100 From: Oscar Salvador To: Miaohe Lin Cc: Rik van Riel , linux-kernel@vger.kernel.org, kernel-team@fb.com, linux-mm@kvack.org, Andrew Morton , Mel Gorman , Johannes Weiner , Matthew Wilcox Subject: Re: [PATCH v2] mm: clean up hwpoison page cache page in fault path Message-ID: References: <20220212213740.423efcea@imladris.surriel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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(). -- Oscar Salvador SUSE Labs