Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp200788lqs; Thu, 13 Jun 2024 07:53:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVf7LXmWt6i3GQYiR9LKCX0NuGRkndgVENCtHR5PBGPrzFzw76mhYUNS3QO5wcGfWWYAkEGGQKNZbPE4vA4SK+i5hS59ZognAJqFqJ9xA== X-Google-Smtp-Source: AGHT+IGUPzqvDKk79/6v8vo8rVWDASAyln8aDTquh9ZnqsaL9YaqgHF5hL1mc9nxkmixYI4V0Yg3 X-Received: by 2002:a17:90a:986:b0:2c2:792c:b5c4 with SMTP id 98e67ed59e1d1-2c4a7606ddfmr5554181a91.10.1718290411292; Thu, 13 Jun 2024 07:53:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718290411; cv=pass; d=google.com; s=arc-20160816; b=zEOZ2RIi17luIIGkLb2BKrmAgHWISkApxVpeeVp/xw6vcfDZFdudBC0eFGAmllen9p lzPJrO4sHO77JOsCAGHJDSN9cKqR9B8WEu/V5it4FL6xQt2zyS8hM8vqh+Uwu0i0RIHG b4MFWcTn4oG4Z1SWYN8QGwPLv83ZEhQHCEyOJVBYqp0iYOgFDJl7lDX+Xvr2uJSWOZyx czIh2dD9AFlmTpHqopbZ9z/Ha3k5ftATB3uiErzqd9kjxtvksrUOQFTUUyAFuU1kLLSB rboTmkeNWS0mnzttT93GZZQNultZQBNBKvyeK8/by6pslCDxyetDVIcFbWw7vzbOfwmD qFeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=0jndB/IGNQDDRPbFJqFkbUj6/rhllTLahhaFEoqfA6s=; fh=x98HgSTBBiC9uITDcpTobI7LumKBTYaU43CmTxkgLg4=; b=xJoL86MWCqwxEO/foXx0cBRWpxacA65suPRz+/AWquKuJ67fxJV8Qs0oq3i4V2ia9E KaIqWW8oTNZo6p8RHPEHhlSp2Hi0/RkMuI9std4TVmOOdzorGOOVfLCBTl4+Mt9/NPZ8 Gg/HJ+ahqBTqg1dBLNQQn2AhwykFBIOoXpnUw+Z/HGOtiPRU/FApO05zUX6j1IliC5md S8PWYHIaLlB2atClzDAZXdu7lPiOg8l5VRkzWqjwVStQhoEaSkEJQqgDCmINhEXflZVX eteDaZrdyfhoAWwoF0RmXX5B8OEUsxy57VlbYQa9Wy6Zh+yg0ZgbnWpta5PyNby7j65P qXOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrpLVmcH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a75de997si3985070a91.28.2024.06.13.07.53.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrpLVmcH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 762F3281F19 for ; Thu, 13 Jun 2024 14:53:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81F4814658F; Thu, 13 Jun 2024 14:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JrpLVmcH" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 303B32AEFE; Thu, 13 Jun 2024 14:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290405; cv=none; b=Uy9msA1WPMgOApn0F5Z5S3B9soDMzSksHIkxo9uVLtvbrL2eIeS1b5HJY7pqUnq9nCHkPql8CcIw85VLSkgsdk+G5iSUTnbNfyUbNuVLy4DoydxMHq7IOth868Ww6YiCpXhzo5Nwg7wZafuKysyIaz3GQDlE+1jPiPTtslAfz6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290405; c=relaxed/simple; bh=mv116xzS15vzP9cCgyxl+fMi+NNgkWtSKInvv0qYaOs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iWKbHay+d+itWUMNjwzGQvQy0TvFUdMP0qZFieFj+haKJh8vi+UviTLW67fZxUM4J9nP521YJdtiS8zzY7W81xBiSB72qGLEaZDDjAv5GA0iJXzKWTqG+lAn2n7s7d1nmX0MaFY/dqE8o1JVMPnnN8McBi3YKOmsQ1/H2Lox8rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JrpLVmcH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC65C2BBFC; Thu, 13 Jun 2024 14:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718290404; bh=mv116xzS15vzP9cCgyxl+fMi+NNgkWtSKInvv0qYaOs=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=JrpLVmcHw+1vVdhz0hr4zlMOLXiUKHV49VrNryd9CK9X7dHErNGXoNPragvwwBCL6 SI+TwOrU0FMj0xU+2UtPCWQYN40GnerBvRUWBRAdFC6tFr6qz/km2rV7Chl1lUoJ9m GkMihacipvdMQvdeIh6blgyiwV88h8rLs6V0Mnkla0nj4SuiDXJa+6y8vT55UDyDCg 17cVFuyxwkGgEp3TDCWzn0VlfqZ9umP1GCUkgnyIY+4CdHl8IwPus+2YunewlR6OZN LcIgWzpaZOEsxjLA0loXbAyOPGV2Su96HAd1dBvN9u04caeK6yBd20pCVyC1ZFFfIw qT4yEmqTp71dA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 556E8CE09E0; Thu, 13 Jun 2024 07:53:24 -0700 (PDT) Date: Thu, 13 Jun 2024 07:53:24 -0700 From: "Paul E. McKenney" To: Jakub Kicinski Cc: "Jason A. Donenfeld" , Julia Lawall , linux-block@vger.kernel.org, kernel-janitors@vger.kernel.org, bridge@lists.linux.dev, linux-trace-kernel@vger.kernel.org, Mathieu Desnoyers , kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "Naveen N. Rao" , Christophe Leroy , Nicholas Piggin , netdev@vger.kernel.org, wireguard@lists.zx2c4.com, linux-kernel@vger.kernel.org, ecryptfs@vger.kernel.org, Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , linux-nfs@vger.kernel.org, linux-can@vger.kernel.org, Lai Jiangshan , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Vlastimil Babka Subject: Re: [PATCH 00/14] replace call_rcu by kfree_rcu for simple kmem_cache_free callback Message-ID: <62757652-8874-45d7-afec-734edeb03831@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240612143305.451abf58@kernel.org> <08ee7eb2-8d08-4f1f-9c46-495a544b8c0e@paulmck-laptop> <20240613071738.0655ff4f@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240613071738.0655ff4f@kernel.org> On Thu, Jun 13, 2024 at 07:17:38AM -0700, Jakub Kicinski wrote: > On Wed, 12 Jun 2024 20:38:02 -0700 Paul E. McKenney wrote: > > o Make rcu_barrier() wait for kfree_rcu() objects. (This is > > surprisingly complex and will wait unnecessarily in some cases. > > However, it does preserve current code.) > > Not sure how much mental capacity for API variations we expect from > people using caches, but I feel like this would score the highest > on Rusty's API scale. I'd even venture an opinion that it's less > confusing to require cache users to have their own (trivial) callbacks > than add API variants we can't error check even at runtime... Fair point, though please see Jason's emails. And the underlying within-RCU mechanism is the same either way, so that API decision can be deferred for some time. But the within-slab mechanism does have the advantage of also possibly simplifying reference-counting and the potential upcoming hazard pointers. On the other hand, I currently have no idea what level of violence this change would make to the slab subsystem. Thanx, Paul