Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp766316lqh; Fri, 31 May 2024 16:50:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpCXU2uQYS9LPTz/XF7zejeAByNhWxg4FkgYkBwRRKIVNjxYHgcqW+yexR8eFYJQ2/HrQeKJfoJXPUAmFDIhlyLF0N4pK8wPTHFWoNsQ== X-Google-Smtp-Source: AGHT+IHO8W28maESQw/qUCHkI9Z88hC2NORA32rZLEagnsoCdNVwIhBk/qes0Og+azf5zfPHjCX7 X-Received: by 2002:a17:902:c40e:b0:1f4:58c6:d5b with SMTP id d9443c01a7336-1f61c1b0436mr92995305ad.28.1717199425882; Fri, 31 May 2024 16:50:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717199425; cv=pass; d=google.com; s=arc-20160816; b=rQ4dKdOEwy7iRp2P/qXvYld7Mw5/xLcMxtXF45WiZUqKoFaSDu5WT2Cc5NIMbzzh1P 5Qz+G0gULW5VJRU+7MynGPX5qRROesOIq3vwVz4fFsokwQj/+dbhj8EBpYXqJB6MaYHV Yihx/wbWV8WErev1RPIZRaNTAEq5UXX2ILVJrpNxtHiERfOlCHpWG+S4cIrAhIgma883 TXpqmLUelt0ypwacuC2b91AYbo+5OpW4wf53jeQq4klsAHmmR7I/VgAWR0Wgql/mkDK/ 3A1OBtw+DU56gNS3zADvcu0GAJpmyCzRHe+hkS3HqFaGwfbdOXKcQlshapPDhWh25tlZ RfwA== 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; bh=OOzuz+/J94mPHKcym5sz7qWGkxJUxusMsJxo0OWXA48=; fh=2NJeHTOqRPUE7t/vJ0SarzTqJwlsdx+l7lWX9B8n0mc=; b=s6PU8eEJjSxQoY1Oe6c2BBf5x5Q3J8cvDquLAE7u9fOXWpfY/lMEj/bUsBG6i+2mTU DsdZTTNvfUKmuLex5bvQ/+/O2ml+6SfhZT1mKW/ZVXZvvWvF0AxHi6oKYVFVg+4vnHZt CDiP36h2aab10bIH0dgDbjsLsUUXSIRCTSlQGqf8qlCKvaMCBjLXx+55mQfWEJ41Zcs9 0qdoBy6eTUEolzZ4J/EeCnYjDZWC1VSMdtGSg4aeSeV7tjzW6fjTSJRKSl9sYTDaTSVk z0e9+FtN5jJLqB1NhvrfRtD+iRMiCQPC9MeuvsAsyDo8X/cWu9zvY2QXb3Ts3uqy/eGA M8Fw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VZZYs8IA; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-197607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b222bf7si2355584a12.477.2024.05.31.16.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 16:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VZZYs8IA; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-197607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 49E632853DA for ; Fri, 31 May 2024 23:50:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4488D12FB34; Fri, 31 May 2024 23:50:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="VZZYs8IA" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D74FD79DC7 for ; Fri, 31 May 2024 23:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717199420; cv=none; b=joYA187BysaVAohfTt/YhDPJgo4D+dUGzsCKlTy5lvRXaWTsOpvk5Xyep4qw+7YMjEDoIMkWJJCHHkNbbkFPRREjoq6QWDHQfhFmeG+tarjCZ6XYqcxpk7xoV2bZcP6ji3LATDl/ujInVZzHtHM0KwmkFjziqnuFLxVH7Ms2CCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717199420; c=relaxed/simple; bh=dZ7ulaDL1L2Ln+oRixcSBYL60i42q924rAbH5hzLhbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gV5VjT6SJKZaPOPyWLPXSwfQZSNXB3GrqHDErmKQHFzZ6GhVI5w/F86Gkk7Was2DEVyLEJ/qLGkdj9Vf64+NAXIxkXBm43X1h3qAvEgyro1h1iNwEy2pY4DlqrAT4Xr4wNVbfmNeOdKlw1nyF7OX1erscpGItcqYyjdxxALwi0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=VZZYs8IA; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: vbabka@suse.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717199416; h=from:from:reply-to:subject:subject: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=OOzuz+/J94mPHKcym5sz7qWGkxJUxusMsJxo0OWXA48=; b=VZZYs8IAXHU6CDmJjarLjJsXvhN8jM9uiQvKBToynuQEa8o1avQIzeaqUnTzdhZ9zKuNxU O6yvG6sRdeRcoieO77vPyOTnuteFJMbfS+DqkRWuzyCIhFKxPHHZU/66DtrUdFmwhr4mUb DlGemm0en859BbplOObWVKtDfyn4FJ0= X-Envelope-To: akinobu.mita@gmail.com X-Envelope-To: cl@linux.com X-Envelope-To: rientjes@google.com X-Envelope-To: ast@kernel.org X-Envelope-To: daniel@iogearbox.net X-Envelope-To: andrii@kernel.org X-Envelope-To: naveen.n.rao@linux.ibm.com X-Envelope-To: anil.s.keshavamurthy@intel.com X-Envelope-To: davem@davemloft.net X-Envelope-To: mhiramat@kernel.org X-Envelope-To: rostedt@goodmis.org X-Envelope-To: mark.rutland@arm.com X-Envelope-To: jolsa@kernel.org X-Envelope-To: 42.hyeyoo@gmail.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: bpf@vger.kernel.org X-Envelope-To: linux-trace-kernel@vger.kernel.org Date: Fri, 31 May 2024 16:50:11 -0700 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vlastimil Babka Cc: Akinobu Mita , Christoph Lameter , David Rientjes , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , Steven Rostedt , Mark Rutland , Jiri Olsa , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH RFC 4/4] mm, page_alloc: add static key for should_fail_alloc_page() Message-ID: References: <20240531-fault-injection-statickeys-v1-0-a513fd0a9614@suse.cz> <20240531-fault-injection-statickeys-v1-4-a513fd0a9614@suse.cz> 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: <20240531-fault-injection-statickeys-v1-4-a513fd0a9614@suse.cz> X-Migadu-Flow: FLOW_OUT On Fri, May 31, 2024 at 11:33:35AM +0200, Vlastimil Babka wrote: > Similarly to should_failslab(), remove the overhead of calling the > noinline function should_fail_alloc_page() with a static key that guards > the allocation hotpath callsite and is controlled by the fault and error > injection frameworks. > > Signed-off-by: Vlastimil Babka Reviewed-by: Roman Gushchin Thanks!