Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp601860lqp; Wed, 22 May 2024 13:50:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrpRWraztK59NGZ4X9YrqGSId+M1bkgzFaqurFc94zMM9U7esYMIp+FRGWPyp4Fb7WV1xWuQtMRsrL77v/bISisCx/x/Lm3NlGIM2hRA== X-Google-Smtp-Source: AGHT+IGaBct011ybRlRajyxskdbq830Z69055TOg+lsE2lSPL3QcrfQGUloCODVfPp9J+xbL+nCf X-Received: by 2002:a19:ee07:0:b0:523:df53:93c2 with SMTP id 2adb3069b0e04-526bf642ec2mr1793733e87.51.1716411047566; Wed, 22 May 2024 13:50:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716411047; cv=pass; d=google.com; s=arc-20160816; b=H0rS8F0WiC48+/pfp2mtFc3HwGBUFSSTjhwzLIk4cvyYgBJ3Gj6LPBjhQ79YCOBk97 Jzd0SBH2jt8DbNKyxrn9S0cygfPxECaOKfgMl/kxIo2zFbe9faSA0bWFQwZ3efrTeebb TSLSUj6Yn43Z/BOujw79fD0S2qPSgkgvkt34dnJmbyymDUztDpYkoYjMCNyN574ZXQIu SBM3ES1KJSwuJWIA0hS9mQnWOvuRR5Lni76uJoch5UQWZ7Ehh+YnU53B58suk6SQuQD5 GSkBioOem2I8EZv50hyF0u1m9tcmps4xhzjDw9t4WgP5AXiDC7+OlMVAPxGWIw9P7KAg +UPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=k81BDkUMU0SoIhYIGjYwahblkQTHRGipazIuGgF/byc=; fh=daKuXPVNXVUxnAsUBFjF7HHYSk3cdiaLzDZb9QT58K0=; b=wSEGhOSHD3xoH9gt8UZ6SVnIM5abqkSxm8f9iDLcoFCEfCZtydUwXMeEScyeRMEjZm tZTXdCRQ72gXaRZAcXWfF8Ep+C9k+y604F3MxWWncANCQjsS9zlNKcpdqIW7DQ+Jdajk eD7dFyhCqbcHQJvY2LfOc4UQs/pKeqZKaG/n7YFHFXNI1aoW9904R1zRBtxPmrtT0Xdm t2xh+9E8S6IPdTqQ4RCShn6Ya5onavE+5Go3FwzbWxHDiSDxxz8SLMzVpOMAqB+j8Qdf 5GS7zeH4N42ClWT1x4yI0TqBBG3RE6mvj6FDLjXBoVbqt3Lw+BSs1E+4kvi5KoMniZQ+ ssDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RzDozfLG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RzDozfLG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-186700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186700-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21c51si1716163166b.357.2024.05.22.13.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 13:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RzDozfLG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RzDozfLG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-186700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186700-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 404AC1F21D8C for ; Wed, 22 May 2024 20:50:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01C8B80049; Wed, 22 May 2024 20:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="RzDozfLG"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tpIiFXxx"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="RzDozfLG"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tpIiFXxx" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F14C3D0A4 for ; Wed, 22 May 2024 20:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716411040; cv=none; b=Hph+hvpc82KzHyJxtgyLnZ99ofmolf/tZMx3sI31DC5bUd/AsL4fYcUxjAjuzknUxPs/uLB31hgpmf4z61OL7wNU37YcslsHrt6pNMzJnCFbx3omGpL27YzHZBUWOVW5hi5kaPEArA2gqX+Psu9eHBn3q0XcDU4kJci8fYyLufE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716411040; c=relaxed/simple; bh=yaccdSNuPTbm1uJ1qWv5Kk5I0tb0MT2Ksps0XB5iz64=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bcgj1oUteA4cGR8UWjCgD26NKkFhueK6z1IL/vi3CPaSFhY5UyiLakoZJ79cFqe1rXn9Kypc39fMXJOhPlmEXHgdL75bkw37S8kdvLlZ2At3ar2mEm6JSU6hNWHfXy8f59Ab6ydC0/dVjpZDheV1qzRCHn7W0e8mSCU/qHJ4FP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=RzDozfLG; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tpIiFXxx; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=RzDozfLG; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tpIiFXxx; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 723C61F7F0; Wed, 22 May 2024 20:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716411035; 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=k81BDkUMU0SoIhYIGjYwahblkQTHRGipazIuGgF/byc=; b=RzDozfLG/85ZUGYq6ELZiJUCU0zDiNjSwanE9DlTZJrLjcDKkGYKxffylI67o2JaSjyD8y wM1Kd0MyA5J3adJ9cNBn0kMazCJ/nEcu++gDZYbDykMvBJsNhxsgPrpz7tW0Qa6F2c1veA hOwkhPt+ngir03pLfq+u0JdboWzfqVA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716411035; 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=k81BDkUMU0SoIhYIGjYwahblkQTHRGipazIuGgF/byc=; b=tpIiFXxxBBT5PhPVflAniTyw53477v2YV6Fw2HPIeudyJn+DERcCBkhuIxtzzp1mYieCgC ctIituy3ZXjXyVCA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716411035; 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=k81BDkUMU0SoIhYIGjYwahblkQTHRGipazIuGgF/byc=; b=RzDozfLG/85ZUGYq6ELZiJUCU0zDiNjSwanE9DlTZJrLjcDKkGYKxffylI67o2JaSjyD8y wM1Kd0MyA5J3adJ9cNBn0kMazCJ/nEcu++gDZYbDykMvBJsNhxsgPrpz7tW0Qa6F2c1veA hOwkhPt+ngir03pLfq+u0JdboWzfqVA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716411035; 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=k81BDkUMU0SoIhYIGjYwahblkQTHRGipazIuGgF/byc=; b=tpIiFXxxBBT5PhPVflAniTyw53477v2YV6Fw2HPIeudyJn+DERcCBkhuIxtzzp1mYieCgC ctIituy3ZXjXyVCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 17B4A13A7A; Wed, 22 May 2024 20:50:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 4kD1AptaTmYIbwAAD6G6ig (envelope-from ); Wed, 22 May 2024 20:50:35 +0000 Date: Wed, 22 May 2024 22:50:33 +0200 From: Oscar Salvador To: Jane Chu Cc: linmiaohe@huawei.com, nao.horiguchi@gmail.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/5] mm/memory-failure: move hwpoison_filter() higher up Message-ID: References: <20240521235429.2368017-1-jane.chu@oracle.com> <20240521235429.2368017-5-jane.chu@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240521235429.2368017-5-jane.chu@oracle.com> X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[huawei.com,gmail.com,linux-foundation.org,kvack.org,vger.kernel.org]; RCPT_COUNT_FIVE(0.00)[6]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[oracle.com:email,suse.de:email] X-Spam-Score: -2.80 X-Spam-Flag: NO On Tue, May 21, 2024 at 05:54:28PM -0600, Jane Chu wrote: > Move hwpoison_filter() higher up as there is no need to spend a lot > cycles only to find out later that the page is supposed to be skipped > from hwpoison handling. > > Signed-off-by: Jane Chu Reviewed-by: Oscar Salvador I was about to raise the point that prior to this change hwpoison_filter() would be called after shake_folio(), which should turn some pages LRU, but I see that shake_page() is also called in hwpoison-inject code. -- Oscar Salvador SUSE Labs