From patchwork Thu Dec 12 18:02:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 13905760 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 642B3E77180 for ; Thu, 12 Dec 2024 18:02:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CC0D66B0082; Thu, 12 Dec 2024 13:02:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C70CD6B0083; Thu, 12 Dec 2024 13:02:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B11AC6B0085; Thu, 12 Dec 2024 13:02:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 90B336B0082 for ; Thu, 12 Dec 2024 13:02:15 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0B0ACAE488 for ; Thu, 12 Dec 2024 18:02:15 +0000 (UTC) X-FDA: 82887075642.05.4579949 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by imf20.hostedemail.com (Postfix) with ESMTP id 418911C000A for ; Thu, 12 Dec 2024 18:01:47 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GCivcRiS; spf=pass (imf20.hostedemail.com: domain of urezki@gmail.com designates 209.85.167.45 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734026514; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=5Yyar+/UK3UHu7jv9j5MYFotaTyk05/FsbHDmLCXdNs=; b=XWQ+FsZFPQ9AjkaqVrixPglOZUYgLT9qvt1muYjL+m1U6jDjQkMKRYC7c5nEAdIdtGWpCy e9xz4vHO0j59qyCKszEYO+cVz9KOi5aRPWSKMPU3CH2f1LaTdWsn//2tDtW3G434HXUty2 grOqUrH+vYjKYkV+58q5WLPdJNiueh8= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GCivcRiS; spf=pass (imf20.hostedemail.com: domain of urezki@gmail.com designates 209.85.167.45 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734026514; a=rsa-sha256; cv=none; b=L3+IfgZCb6NEQFKumiEhSAt9cmJE04XkF4+kbxUqOInAYDb5LQCnXk2qP2ScnD2Cz+QkUG W9pM271W6fW9TYeL6ZBWQmPPqhpyo4mqPwG6ive8jb4CeLWivW9Z1/02ZMwThzzdn57jee 51UiFVS8MDYxG0W4axy2b2VKXBciqbw= Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5401c52000dso1006099e87.3 for ; Thu, 12 Dec 2024 10:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734026531; x=1734631331; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5Yyar+/UK3UHu7jv9j5MYFotaTyk05/FsbHDmLCXdNs=; b=GCivcRiSbVrg/rLTLlpUo4yy0bIv60bROx5T9zy8McHwhXIV+CU6/vKj1U+hRL2jAv KafVge2xwafl8fm4TNXiJlFMAWp9PXWIkJ/sC+TVV3nfosGEnC0v0oDiJQ/r3sYpLfxf Hpyfr9p5O8IzMrbko9/uZqmbGZECurzwC44ZRGy5FWs1vrniKWN7mMfGQ7Q1TIueS/FI sqJNGf0ENooUAk13rnG+Zn7TETr1nG2xj8wTJqi6RzUnBNCEck9LihMgc470u7ircLgI o5sVXff0wN6A7rr64/p7h41wnDvMZszhWDPjITEEoFNne8eJd0YlGw4dQMvM60oCoHRV qW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734026531; x=1734631331; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5Yyar+/UK3UHu7jv9j5MYFotaTyk05/FsbHDmLCXdNs=; b=KPABLPCBg3fEDY8byY0xN/IPgwSC4FsS8ubUMMHWW18LCnGIDWdtOba/faIkgeSga4 XqGyjLKis3V1Jw9ODLSw3O+68r1g+F3qOfRnnEIqfto3AnCBIkC4LYP2GoMWurucAuXV R0xK4YHlRBk29mZStIxZEeMBuc6zReikvuS/hcVd6RaR7tmZtaAwPtMpTq209qYSyP3Q N5PFKiU6v4GjXXXXYB/N9Q0J/u1XuB8XDbfZXT3agpU3WDH9lIt0Jn5x5qzJfkFzi0U7 ybGpU0KnKtRXt0hwumj7dyrxE6x3N1MmjyhCMCrPS37dSLEHc6ciJyo5AAimIANiNgq6 2fBQ== X-Gm-Message-State: AOJu0Yy3sAwGJAauCrG3XmeXvWz/uP3YZpNWYCuj7VggGKXJGGCAmWu0 nNG+/sjdzw8YUwbacH0AMxCyl1hqwpGUIUD8uRHpEq/FHVpIGvYDGyZ8KQ== X-Gm-Gg: ASbGncvSjW9UB3At2Xypit4YTcpM+cnpEildzL9z1HZQPwSP6Xldhl9+J591gy2mHXv 8uIVPpoEn5/XE6/DVwLcC+eyCguRu+fSBzOx2GpI9yCEqxfyOageskXGmkQPI4G/PsSgDHa96i/ 02FEzjdjfnGkJ9uxCu6nclBqFZrzV+yzqtchq0jeBAn38+vtX3r02jOJg3Qjxcu2t7JB6yveees xrfC9tApqNkvqVfY9uAi3hkMNDMWrsA3rddOpP7wuyZ4MTNWdmP X-Google-Smtp-Source: AGHT+IFEuLOgv75c7u4xf6kwYM0OxGq31VqT+OtC2H1NfblZU+Bx/qpixIlq2KU38m/OTDQ6fi4mrw== X-Received: by 2002:a05:6512:31d3:b0:540:30df:b3f1 with SMTP id 2adb3069b0e04-54034106e98mr638959e87.17.1734026530909; Thu, 12 Dec 2024 10:02:10 -0800 (PST) Received: from pc638.lan ([2001:9b1:d5a0:a500:2d8:61ff:fec9:d743]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53e39375d36sm1940645e87.7.2024.12.12.10.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 10:02:10 -0800 (PST) From: "Uladzislau Rezki (Sony)" To: linux-mm@kvack.org, "Paul E . McKenney" , Andrew Morton , Vlastimil Babka Cc: RCU , LKML , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2) Date: Thu, 12 Dec 2024 19:02:03 +0100 Message-Id: <20241212180208.274813-1-urezki@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspamd-Queue-Id: 418911C000A X-Rspamd-Server: rspam12 X-Stat-Signature: fpsa5pg9apac46wc6gtas8h1owp7ayhy X-Rspam-User: X-HE-Tag: 1734026506-323532 X-HE-Meta: U2FsdGVkX19wC6UfEdfEOMiVpaHruBwRSWwMKUQSYOAQi+CUt+GFAM9gD8EqaBju7kaO42GtjYjoqS1Ob050D2Kps84+eDGvOgb3LTDzAKv0qzdagE1Gmde1o00Jbx4Bo25OS72M8qEOD7Fsfy8FvUKEnDS2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ZgUPNwBGTTjusQgNr1CeizYo5sAUvbWy+WqvUEZ9d8nxWA2roR8jXHdiocv/Lo++5SBTjWyQa7XRU/umAuzBSwOVJ0J1iENQdioWWdMbUyEIawLKeLU3pedEjvDxRL937089KiEbUgOr++xg/2Dv0rF7HJCsRxnBff3zcUEIYehSkjYUbPflgJKDpJkMtfGOeYr2FrUn/vGQaGfyLn3Kk3nFKeJOYXf0kwwLBuQul9nt8g6iyz3Psz5Sx9yE/y9MhxhH5PyBPjhJm4NMZcs+w9dAiiwc5A16xInRP5Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.016540, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hello! This is v2. It is based on the Linux 6.13-rc2. The first version is here: https://lore.kernel.org/linux-mm/20241210164035.3391747-4-urezki@gmail.com/T/ The difference between v1 and v2 is that, the preparation process is done in original place instead and after that there is one final move. Uladzislau Rezki (Sony) (5): rcu/kvfree: Initialize kvfree_rcu() separately rcu/kvfree: Move some functions under CONFIG_TINY_RCU rcu/kvfree: Adjust names passed into trace functions rcu/kvfree: Adjust a shrinker name mm/slab: Move kvfree_rcu() into SLAB include/linux/slab.h | 1 + init/main.c | 1 + kernel/rcu/tree.c | 876 ------------------------------------------ mm/slab_common.c | 880 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 882 insertions(+), 876 deletions(-)