Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp150947rwl; Wed, 4 Jan 2023 16:50:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtgEueLXhs8o6QTOpSn+q5DrGL5EBys3dCQfmpTmDmFux7SuEupfTurqyDqPYtMQIsXvsIu X-Received: by 2002:a05:6a20:bf29:b0:a5:df86:f2b4 with SMTP id gc41-20020a056a20bf2900b000a5df86f2b4mr52284357pzb.58.1672879837485; Wed, 04 Jan 2023 16:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672879837; cv=none; d=google.com; s=arc-20160816; b=ZoYDjj7zE027deXsuMK3/94F87NjPgl6pgWuwI/tvVuugCs139BILoGTy0GyxITecv 18B8yXQfu5KuAISLXuqFypVaH2KKj9c9bPh5Y9PoiLchqBKvpC4fHr4LSn+muWQQ4Q91 yD3IsUu3dwMRrp2BXWFNggNtrekKLbKjaimcRgaVqd/h9MNnNTGqbfrTb0dBUkXjEKVv Qynku5axxyGBxa881TZ8BmbBSnhNiNDjstwGleaJLZBeUW9gVzqUz8OaXtVa+K32ZIOj GRue28yvYQlXLXuNBH0wZYLDUuEVl9gXrRHz3vTZzPGgd8wvVtlNtjJ/S40Ks7DTHm6R yk2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=vX/Y07PBYfsl74a1X2gmxp5YWAdae3zKc7gGQOqf+Dc=; b=DK0dacVq3/WNXXWX2+w/eXxicdgqsFbOOqNNQqsh7xf6k0x+A0sK25G8NcuW/tTzr+ zBmpoOd1TZeW874l/QsXgwxSlJRaEwDyD49igiDON5ht1AwcF96gndAltVTw4KR+3XUF NMGX/Z7Bt7F5yvuRyavRRh3O488bR2fSzkD8ZSnVfGJ9nem+p+tcaI19JpoYslrSaXGF sk3JeeEyDjKaohVIyn9womxxCQYc85P2A1MU0hFSxsd2K8X3WJnzP7f4tE5xR3e2vFEt m21dI8zGROoUvoQH0hshCMN0O1vR7VysuAaYyWeYK5jp0LzSWBiZNIpMmUPoy6FUp+vF POGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gz61bg5O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u190-20020a6385c7000000b00478d2acc977si37450900pgd.662.2023.01.04.16.50.29; Wed, 04 Jan 2023 16:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gz61bg5O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235510AbjAEA0f (ORCPT + 58 others); Wed, 4 Jan 2023 19:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240720AbjAEA0B (ORCPT ); Wed, 4 Jan 2023 19:26:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7894D706; Wed, 4 Jan 2023 16:24:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B84B761881; Thu, 5 Jan 2023 00:24:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C5A4C433D2; Thu, 5 Jan 2023 00:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672878282; bh=oCquJHQ5qvbPHcFqmzO6M/70tP+Z9dXfhqcaGkWfu5Q=; h=Date:From:To:Cc:Subject:Reply-To:From; b=Gz61bg5OybJWJv4Z+BrMJ1Dz4xBgHeCBOd/bDUJwlmJHjre3N5m8U+N6cMwKmY+tM 02q7kbl9Pi1NV2sMCv6HdiBWWRSJbFrqvsaar4kHYj1SzsLe2WMMi5Efq/xtKEQcE/ cQl3MdDjhyQrmmJyXDq+VzYZxULXjzEAkNoEsmrRbc3WAx52+TsvoPNTfbZBNki0/r 8ID8hd+uD6uP3GoRfHyGh5jV2z8VK4itObbp4JwuQGNDUNpdxwpTOx+ySTAjOSGz9T FKwSjSov9/U6rQkxHZk0YaQs0zqJ5xit/g7DFduDKt79JK+RE01def9hXYarg5nXRm gS9z+x17VRrFA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D591E5C05CA; Wed, 4 Jan 2023 16:24:41 -0800 (PST) Date: Wed, 4 Jan 2023 16:24:41 -0800 From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org Subject: [PATCH rcu 0/8] kvfree_rcu updates for v6.3 Message-ID: <20230105002441.GA1768817@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Hello! This series contains a few kvfree_rcu() updates: 1. Refactor kvfree_call_rcu() and high-level helpers, courtesy of "Uladzislau Rezki (Sony)". 2. Switch to a generic linked list API, courtesy of "Uladzislau Rezki (Sony)". 3. Move bulk/list reclaim to separate functions, courtesy of "Uladzislau Rezki (Sony)". 4. Move need_offload_krc() out of krcp->lock, courtesy of "Uladzislau Rezki (Sony)". 5. Use a polled API to speedup a reclaim process, courtesy of "Uladzislau Rezki (Sony)". 6. Use READ_ONCE() when access to krcp->head, courtesy of "Uladzislau Rezki (Sony)". 7. Carefully reset number of objects in krcp, courtesy of "Uladzislau Rezki (Sony)". 8. Split ready for reclaim objects from a batch, courtesy of "Uladzislau Rezki (Sony)". Thanx, Paul ------------------------------------------------------------------------ b/include/linux/rcupdate.h | 5 b/include/linux/rcutiny.h | 12 - b/include/linux/rcutree.h | 2 b/kernel/rcu/tiny.c | 9 - b/kernel/rcu/tree.c | 29 +-- kernel/rcu/tree.c | 392 +++++++++++++++++++++++++++------------------ 6 files changed, 261 insertions(+), 188 deletions(-)