Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1731858lql; Wed, 13 Mar 2024 06:52:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWcGGkPEu5MPdiAkvGEUAKHUYCl1/JxBokAai49AU+CjR8w1vzg4B5rxWnU4g4T2fGCLUBzsxddywSAmIJxz/gTgzkIlbp0pn++3prSQ== X-Google-Smtp-Source: AGHT+IHK4jbB1TNRill+csA8vtNUbsTb0tqj64HUDYUXWckeJ3TyDqbO3YCDS9S+Bd+YtX70t9hU X-Received: by 2002:a17:906:b19:b0:a46:5489:e949 with SMTP id u25-20020a1709060b1900b00a465489e949mr1303230ejg.30.1710337968289; Wed, 13 Mar 2024 06:52:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710337968; cv=pass; d=google.com; s=arc-20160816; b=D0gdtHH6lD1DUryQ2mrvNlnM7Aauvd60uiFORXb3ONM4KBZYejZq7b/PUezNiW7gKJ H4b0MpZcaQd1LzBtfFQSrlGR+vmFC0wRO0KRSfjPx/tVdh2vDRIzpLjWFMy1UOYqlCGQ XzPluXhokSQVMC6J53oyiZcY7UuXWrYRhjGm7XSb8GSOwfBvVWMl4AWBvIQfz/kSRdn2 d2UjyGNiidbljGvs4Vig9YYgiHHqKbLx7XIYLpbbD33YPSs7nR1kOYE3AcXfjdH7lhtM ALTbIu7eljUQulzB6md89V9sqQ7x9ZxV8HjB/P268rGz8tjrlU3tZx5sFY2d12JtO7qd lSKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=XFhbbMRYCJAgLqELLxWLqfsH3hbHEF1BH4hx+bhAMaM=; fh=Q5QK3mEHpiSw50+k3en+vN00KR+pxr1dxz1JLzJfHmQ=; b=o8QZR3/GUZVOF2d3sP8YsF8F+rE1AMm510kuZW4Ukrl1+9QubUEAUzKMODdwjR86Wu uLBVBIg2B1XxVu/w4jfyuuf6Da+oh+9ZjqxzR2yqlql8ReZdDqWFK3z+tzX3uXlDB3kV J8ZE6FJGw1s9/cgY/uAhIwBEhpL1kOhuKZq2oh3Z1LIjThoAFpIalzGcKeS0KMC/Ff/Q GUqIoyQO83U4f7z8ikh3iWwvmzwJYt8kMYnCVoTVrKai+ZePKDEAaMb6wEK+JURPDF/7 AFCxVo77dHvTHBQ8OJ/efYKAN3R7Z8SgME+4BjydJQDpqVMdBPAYksCbf19UACnz/hsX sE0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Maisu8p+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Maisu8p+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-101564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101564-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id zo19-20020a170906ff5300b00a45bfd8f05esi4289401ejb.864.2024.03.13.06.52.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:52:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Maisu8p+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Maisu8p+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-101564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101564-linux.lists.archive=gmail.com@vger.kernel.org" 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 CAF1A1F2363D for ; Wed, 13 Mar 2024 13:52:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4CF4446BA; Wed, 13 Mar 2024 13:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Maisu8p+"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="IkYTQT/R"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Maisu8p+"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="IkYTQT/R" 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 10FAC35894; Wed, 13 Mar 2024 13:52:29 +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=1710337953; cv=none; b=NmM0KjRZWoX6F9Jc7YvCfLo60dOFDJn8zCK40jv3XbSS6Fvupk4lyjHqbhriVpyMj3XWvm1H5URw4OT+kuUGMToPPLpvfbMPSbvd25HrYYGC33ppCl2uBnKYSgKXRE2Oc7U87VIVplvMdudtK7VlTkG+mI3iL1Ltvuf8T6lpd/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710337953; c=relaxed/simple; bh=rHfsoLgtf5f5k5fyHTRd1g6+/B0CcY2M6+E3znEcWu8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Zuvt7qaCp/BJoq3m9Ai/zgHKKDocxK+Mqs4iQ5Hl0EXI1JQwh15yOo3wHcWGn1bbnMayUZeLPkAgdOOKrYGaN7oaJQN98ch3OclQTZUSaO8KoxKShFs9UiwHLz2NG1r/6kbk9BuH7mKR+KaGRSQPLwUeErzjJpK4QNrO2Ci0mM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Maisu8p+; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=IkYTQT/R; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Maisu8p+; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=IkYTQT/R; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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 20D211F7D4; Wed, 13 Mar 2024 13:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710337948; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XFhbbMRYCJAgLqELLxWLqfsH3hbHEF1BH4hx+bhAMaM=; b=Maisu8p+8VOLtYY3TrJkR6rfS5B+biJ+LLvd8LzgWVs36+MO0dIgBYONhiDpj9BO0wU7As 5WBYSK4zyJyrGYI8oVkWNfm29jvIUlPG3mv1SaFBB4ETsn/Low2VGH0rrgxV/8AONovAQG lFNCUTxmHnFtwn6WdPREzN5h/FCJMs4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710337948; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XFhbbMRYCJAgLqELLxWLqfsH3hbHEF1BH4hx+bhAMaM=; b=IkYTQT/R3aiB5aD7xFbTOmZOArH9iK+B5x3LUVlKBuTsf4vF+4u7JaIoaAkSErym3uJ5X+ FaW3DBH6chjv6vDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710337948; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XFhbbMRYCJAgLqELLxWLqfsH3hbHEF1BH4hx+bhAMaM=; b=Maisu8p+8VOLtYY3TrJkR6rfS5B+biJ+LLvd8LzgWVs36+MO0dIgBYONhiDpj9BO0wU7As 5WBYSK4zyJyrGYI8oVkWNfm29jvIUlPG3mv1SaFBB4ETsn/Low2VGH0rrgxV/8AONovAQG lFNCUTxmHnFtwn6WdPREzN5h/FCJMs4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710337948; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XFhbbMRYCJAgLqELLxWLqfsH3hbHEF1BH4hx+bhAMaM=; b=IkYTQT/R3aiB5aD7xFbTOmZOArH9iK+B5x3LUVlKBuTsf4vF+4u7JaIoaAkSErym3uJ5X+ FaW3DBH6chjv6vDw== 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 AAB161397F; Wed, 13 Mar 2024 13:52:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id E5Z1KZuv8WWIVAAAD6G6ig (envelope-from ); Wed, 13 Mar 2024 13:52:27 +0000 Message-ID: Date: Wed, 13 Mar 2024 14:53:08 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 03/37] mm/slub: Mark slab_free_freelist_hook() __always_inline To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, mhocko@suse.com, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org References: <20240306182440.2003814-1-surenb@google.com> <20240306182440.2003814-4-surenb@google.com> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <20240306182440.2003814-4-surenb@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Maisu8p+; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="IkYTQT/R" X-Spamd-Result: default: False [-1.77 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; URIBL_BLOCKED(0.00)[chromium.org:email,suse.cz:email,suse.cz:dkim,linux.dev:email,soleen.com:email]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from]; BAYES_HAM(-2.97)[99.88%]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_GT_50(0.00)[76]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email,suse.cz:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux.dev,suse.com,cmpxchg.org,suse.de,stgolabs.net,infradead.org,oracle.com,i-love.sakura.ne.jp,lwn.net,manifault.com,redhat.com,arm.com,kernel.org,arndb.de,linutronix.de,linux.intel.com,kernel.dk,nvidia.com,soleen.com,google.com,gmail.com,chromium.org,linuxfoundation.org,linaro.org,goodmis.org,linux.com,lge.com,bytedance.com,akamai.com,android.com,vger.kernel.org,lists.linux.dev,kvack.org,googlegroups.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: -1.77 X-Rspamd-Queue-Id: 20D211F7D4 X-Spam-Flag: NO X-Rspamd-Server: rspamd1.dmz-prg2.suse.org On 3/6/24 19:24, Suren Baghdasaryan wrote: > From: Kent Overstreet > > It seems we need to be more forceful with the compiler on this one. > This is done for performance reasons only. > > Signed-off-by: Kent Overstreet > Signed-off-by: Suren Baghdasaryan > Reviewed-by: Kees Cook > Reviewed-by: Pasha Tatashin Reviewed-by: Vlastimil Babka > --- > mm/slub.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/mm/slub.c b/mm/slub.c > index 2ef88bbf56a3..0f3369f6188b 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -2121,9 +2121,9 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init) > return !kasan_slab_free(s, x, init); > } > > -static inline bool slab_free_freelist_hook(struct kmem_cache *s, > - void **head, void **tail, > - int *cnt) > +static __fastpath_inline > +bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail, > + int *cnt) > { > > void *object;