From patchwork Mon Dec 4 19:34:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlastimil Babka X-Patchwork-Id: 13479024 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 C00CEC10DC3 for ; Mon, 4 Dec 2023 19:35:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 03A1E6B02E7; Mon, 4 Dec 2023 14:34:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D6ADE6B02EF; Mon, 4 Dec 2023 14:34:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A35D66B02F3; Mon, 4 Dec 2023 14:34:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4E0656B02EF for ; Mon, 4 Dec 2023 14:34:57 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0081880379 for ; Mon, 4 Dec 2023 19:34:56 +0000 (UTC) X-FDA: 81530138634.14.666C323 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf18.hostedemail.com (Postfix) with ESMTP id C77751C0023 for ; Mon, 4 Dec 2023 19:34:54 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701718495; h=from:from:sender:reply-to:subject:subject: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: references; bh=aZT4XXToznx+yNKftkZu4IjQ3/65or5OU6hVajERaWU=; b=jROObn9/89Q2OfWlU3JHLUjVP/VIa3QRHzM+qmQ4+Q4FU5qlntvfShqGJ6uUW92H/b3ysY a5NkR5Old7LvOaK4PcXrjOFJww7EUPMTi7KXzWWb0e3hGxm0EBVr8X8bZ7wGMM0+f+dnYh 7E9NzqspiPCrFBiUpZjkmiute+qzD2M= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701718495; a=rsa-sha256; cv=none; b=nrRf6zQPg92rozghDp0kfwE7KAXvTKwvZMI1/N0cZhl9eVRY5NBemmqR8H7d/vyI+SLNv4 g1z7GBy5cXj6a5K6bUKaqLRriOUaWt2p5v+Ey4u+8lLCEv61TcBqUl+kw2TZIADKXfDtjp uo5bMfmMQ/EL5JluXNUi0eXfjQUwiAg= 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 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: ++++++++ X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C77751C0023 X-Stat-Signature: oxrjmfye8zykq5uqatif35iqw17xu45f X-Rspam-User: X-HE-Tag: 1701718494-19397 X-HE-Meta: U2FsdGVkX1/0BvLlhQ4u9h0wLDEScMy31YnCaEmHFme9+9K0+QNIMiN+9nryfAiB8zYcnI8WgCf6aSYm7Gc6YByGVsBrCXgrxW2cGhmx9XKNoaz95WavLGQYNrRhnbGkCoDO5dWOBUCoHrL/6WWJ+b1te63Ca7JXpXRzUDtqQl9R0/Ko1v02ABVLuv3uAbT9kUjcFl8iZMxSrm6QeaXfACXjMy174tJenQzjCNjJk9CoFmY2UIm1JUTu+IEbRl5OU5O5Um3pBwVc9kliJ1EHKP8K8wcHHRsqPDi+cefTBfd8Q8akYbQmi2ppNxG1lSAOAh7/+9mZMw3BI4NW0kkwIHRHpHB3M+nMKnFlcIFmXM27dlbHg1vLtC/lQfcsG4DNUT59nyemrRJORJKri2c1queWVINkjxcXIZ51T2/x+PbFJblba2CxQFB1ot/TP/2yJ/7VVUT22NQUltHh5T+MdgGcIKH2JBo7qQxYGyCD6sXrnfNSWmNI516lJHlcdLTyerx4//ygy8SAF0yIQIIL5UFEch4BREPDsmOex9oi5wUxrxRLSW7Ei+8/UDu/V1GcyqMBjSujtPsy81noqkSWGhBX6Xli+zduuH05UwUUUFBiczJY4179f9i/4t3VE4DLIZ0vbmc47oS3KBPsbZLBmmjMIeerdGpBaXYOkXVWvlbDKHCtjiF9wu1yjIhw/6ucLU4BKK8TtnFiC+Js0Gf3+azFI8MNgsLxntousgeaqIQmHFtPufSdBp859gApJfq30U0rEIXADZA3E76loo56xk3m9ub1LEWK2z8OpyQPoWcvQHJHoHAOuQkAwhJyg0d1ev6XmKicZE7S2/SCseL8rD1OhXgjb/2o328aafTrcDS3mDPpq+1ogASSEgx73NsddkKJV8ziBG3GcfeSrcJeoc/SRCVxK27RohDdBis/RYmvYdtCb0/vEt3yh5r7pmYzOLb/8uP8Pg17IplC7Hs UAPXxHZ/ IPEI4i+rwPj9NL5i68MaEI2KIy2XBGhSv6lntJgbWBAQVMtoLnOWCnwr4hsi0vHxpwn8WjxI5XkbLqAA6TaAYecByIXC/TfL1GhzbIJbUiPQyNWidrJmpO9QsiTqomACDwJBmOy/dBJkj5yd4SnAc4DzSEU4dMfuZo/YnUnQGoc64IEWnT37uBFCcBE8ON+eIySR4eGRQYLuxE9JjgOt69KFynx3UiN0jWTeMUC2astpJjZlklZoT/zE7cQ== 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: List-Subscribe: List-Unsubscribe: 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,