From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65801C433EF for ; Mon, 21 Feb 2022 12:54:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 692A08D0002; Mon, 21 Feb 2022 07:54:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 61A908D0001; Mon, 21 Feb 2022 07:54:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 494418D0002; Mon, 21 Feb 2022 07:54:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0232.hostedemail.com [216.40.44.232]) by kanga.kvack.org (Postfix) with ESMTP id 32FEA8D0001 for ; Mon, 21 Feb 2022 07:54:55 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id E3495181C9BBC for ; Mon, 21 Feb 2022 12:54:54 +0000 (UTC) X-FDA: 79166781708.11.AA58E4E Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf11.hostedemail.com (Postfix) with ESMTP id 5089D40004 for ; Mon, 21 Feb 2022 12:54:54 +0000 (UTC) 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-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 5089D40004 X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=aVw5Npw7; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=IpjMOS8u; spf=pass (imf11.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=pass (policy=none) header.from=suse.de X-Stat-Signature: r4xpe971ipoaoboxksqoitsoje1qn4uh X-HE-Tag: 1645448094-629087 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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