Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2938172rdb; Mon, 4 Dec 2023 11:35:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGejNnt3H6ltVLRGX2g+krNW/MewDGASNLVjP9QX+64cjiOq++UHs6CmZd/FUlL6UcQXU0h X-Received: by 2002:a05:6e02:248c:b0:35d:720a:7eaf with SMTP id bt12-20020a056e02248c00b0035d720a7eafmr2014364ilb.6.1701718503043; Mon, 04 Dec 2023 11:35:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701718503; cv=none; d=google.com; s=arc-20160816; b=GdzUysTC+RPe/TDlKG4in/QqjRsWMPcf2DPojyrN2CzFSVb+6FXRzu5fW9GSP4UJtW 3AJRGtdGQzzRithyoebfjwc/Ev1zeandOWUtSI+wfXfS+gy8UxUfCxqYO7Hh3upLOie9 hRLk5lhRTHCGzbPSbzxHC2xBNfEUm5kmFHTAoihCO29uYT2raVtSpIB+JVOYItsmuvm5 QB1KVQiOoVtxQ60Te9DfTAuF8fU+LqUpj5aZAy/kHmoXBDk6bQuCINtuQVG525NwMuGk ftS2rdJNo7dvbvGHV4Sh7RRvxzX88mrZoG3qgchVgnkgmmYWwW5FJaqNc2Bt8BYG+x77 y7vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=aZT4XXToznx+yNKftkZu4IjQ3/65or5OU6hVajERaWU=; fh=QGaHzSWEdTlyx4gN2Cp05xyAuU2J2OcL//unbyREezU=; b=bA42UV1jQpG2nnNlKdU3surhBZG0+Oa+waMIE45Ly7L8DfNCTJABJINU2pJX0D98Fn 0UfImsQHMfd4ueO6lKuVmO4NDJKzeT9m/hVuf0Oiqejh8mlY68MZ67XSDYCXA6z1dAyz MeYFGJvB9ksyFiqTGd016Zygl6IhmKHNqihrjowjEpuFC19pey7LKWVa1Zq2rgiNaAIt pyYWsh7wQbbYxlAiZnDk2X/HWBmOBqMzQ32WcpMjpuRdJdDEWF+81Uw1ZI5n62JovTGT qbp5QD10JxZkOGHXO+AAY6Up4b0qer8mFi7Xc8IZFOMliF0rXD28J6+vFhfRhpGiia+x j/EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t7-20020a63d247000000b005b942de1e92si8345754pgi.443.2023.12.04.11.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:35:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 00CD880AB1F5; Mon, 4 Dec 2023 11:35:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232908AbjLDTeu (ORCPT + 99 others); Mon, 4 Dec 2023 14:34:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjLDTes (ORCPT ); Mon, 4 Dec 2023 14:34:48 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9FBCE for ; Mon, 4 Dec 2023 11:34:54 -0800 (PST) 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 7748F1FE6D; Mon, 4 Dec 2023 19:34:52 +0000 (UTC) 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 53667139AA; Mon, 4 Dec 2023 19:34:52 +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 x9KfE9wpbmUPMwAAD6G6ig (envelope-from ); Mon, 04 Dec 2023 19:34:52 +0000 From: Vlastimil Babka Subject: [PATCH 0/4] SLUB: cleanup hook processing Date: Mon, 04 Dec 2023 20:34:39 +0100 Message-Id: <20231204-slub-cleanup-hooks-v1-0-88b65f7cd9d5@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAM8pbmUC/x3MQQqAIBBA0avErBtIyxZdJVqYjTkUGg5FEN09a fkW/z8glJkEhuqBTBcLp1ig6gpcsHEl5KUYdKNbpZsOZT9ndDvZeB4YUtoEvfGmU622vXJQwiO T5/ufjtP7fnAR5D9kAAAA To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim Cc: Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Alexander Potapenko , Marco Elver , Dmitry Vyukov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Vlastimil Babka X-Mailer: b4 0.12.4 X-Spamd-Bar: ++++++++ Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 2a07:de40:b281:104:10:150:64:97 is neither permitted nor denied by domain of vbabka@suse.cz) smtp.mailfrom=vbabka@suse.cz X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [8.39 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(1.20)[suse.cz]; R_SPF_SOFTFAIL(4.60)[~all]; BAYES_HAM(-0.00)[38.82%]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[14]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux-foundation.org,linux.dev,gmail.com,google.com,kvack.org,vger.kernel.org,googlegroups.com,suse.cz]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: 8.39 X-Rspamd-Queue-Id: 7748F1FE6D X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:35:02 -0800 (PST) This is a spin-off of preparatory patches from the percpu array series [1] as they are IMHO useful on their own and simple enough to target 6.8, while the percpu array is still a RFC. To avoid non-trivial conflict, the series is also rebased on top of the SLAB removal branch. [2] [1] https://lore.kernel.org/all/20231129-slub-percpu-caches-v3-0-6bcf536772bc@suse.cz/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git/log/?h=slab/for-6.8/slab-removal --- Vlastimil Babka (4): mm/slub: fix bulk alloc and free stats mm/slub: introduce __kmem_cache_free_bulk() without free hooks mm/slub: handle bulk and single object freeing separately mm/slub: free KFENCE objects in slab_free_hook() mm/slub.c | 109 +++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 73 insertions(+), 36 deletions(-) --- base-commit: 4a38e93b3a7e6669c44929fed918b1494e902dd7 change-id: 20231204-slub-cleanup-hooks-f5f54132a61c Best regards, -- Vlastimil Babka