Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp178165lqs; Thu, 13 Jun 2024 07:17:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIVjupCw84B7ToQE4/S8Ua0TVgAuq1wiCU8TXlvgLgCi6x/oWnb84ypynfKrnGuQC9SKMX5GTja9tRRxiJKHqZVhS8PaPZItbm25C2cw== X-Google-Smtp-Source: AGHT+IG1uJauOc1rpjFjXXvzxQadSFu14zEu/mrCx6mtlb9YLZ2Vs29R7z0WmOXsATH2ynI559+O X-Received: by 2002:a05:620a:4514:b0:795:5616:754a with SMTP id af79cd13be357-797f60a4132mr602720585a.21.1718288265787; Thu, 13 Jun 2024 07:17:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718288265; cv=pass; d=google.com; s=arc-20160816; b=JT/RVwYkVT6c7K7k8HyTMTrMtratpHKUJP6yvO2XTyZSoQPmVZEZ4Hi2A1AfWWiQ44 AJyta/rHzfdXC4wHX3It617vcNIykrBTWwoOZ4m8o90dGI1FEWxzitteyHBjsDXm+dFB NpoGGuiJnHYpUqpejWyp7Ig1qoaTDIHww6qkwP/B/XxgrefPCsfsUs2oWEIlrqYTnDx0 VdyHWWb56b1Le/0n86dCdZXo6fLYnvbJh3hXCTsVWkOJCgPHbVHRX7zzCGGKG+lrtdYi Cds2Z4bDwx0U7y7qfKPl2qmZdop7HuhBw/9kkb1wIcO83QnPfmRYfeAY1kKElXNbplV6 IJFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=IdP8kzOkdgzsnSbLof1G36mGVDMQFD5rn7wLn2v+iwA=; fh=pSA0O2vvUZ7xdtkZeVqQWCjNaxqj6AQBe0MOezvoffE=; b=tEQhkA7RWJqEHOiMO6WeKfG6ANvYZjX1agFemz58iBUg3SZXAeciy78AqWy0zxbNN3 2uRVWwMn8SXawxvFm9sU8V7xghFtBRzAzkVJ8aoZTHQRpi/vGcD0FA0IR04ZR9ANCmsf GjSulsgm//HwD9OEVcUlTo9cY6jLTQV/1dYNEQ/USh7//xTR29XYy8Q6sFqj1GBiPdTf WrqU5KedJbJPXUoYDABPrMSVJsLURlyIvNtgFF4Cl2LF051ARMfxdD3++20THXKdd7S1 Kk1sE1WGS8JasgBerLB9z9ZRK2YV63YlppHVoLsiqB8TJW8ois5OQTEpBiTpW2QibjVp ua2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q809wP6K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798ab9f9769si141473685a.349.2024.06.13.07.17.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q809wP6K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3764-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EACEA1C21B91 for ; Thu, 13 Jun 2024 14:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8699D142E86; Thu, 13 Jun 2024 14:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q809wP6K" 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 35C041422B4; Thu, 13 Jun 2024 14:17:40 +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=1718288261; cv=none; b=E9WySayjFoyRSSaMjytV+5ATbrPtNqZhH4/lfxdob9DCjQymYkm2j8SXYivXnc8PxJH5d2drTasafBP4lcn4q2hvN4ubi+eDQCAdVFqoLtNrm4jk/oROTeP/67MjuzkKJXBAcCkNg9V4LysZUphvw1Io4UDnPbm4nS5EG6rFoiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718288261; c=relaxed/simple; bh=cY+0iwxjfi/10UJxN+zolp0hxf4e2REnIO+nP7ilZd8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Di1089C/7cRankZdIDcyopWIvx02Bvkz1OeQOmoKFWdAa8S8bguZUjBsIgUCNzcXBu5+7OOzmHK1We2AqifkOdksciAVi+jwGs7iTG4AT0woY0K1d0xLfrNRcyx2eXU2OfjLzRdkh3i22rdCKDNdC7lWCRsfxeWS+W/EuE38QDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q809wP6K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5DC4C2BBFC; Thu, 13 Jun 2024 14:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718288260; bh=cY+0iwxjfi/10UJxN+zolp0hxf4e2REnIO+nP7ilZd8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q809wP6KZ6dZ2KKSNToRWIFGS+TU6NU5CCFFg8KWmjJdi9aaszmfpaIVjMuKfhLBq UJN5SEQEE8k67Ilrcup/14dWJNiWzw0Gq+kTmnOl3cxHd/hbJzGBv+df0UJzjBy5rb ZUDfjc8O2vhrMLxae6+zOsoY3P2BzyKzw8yVcyNwWMpzV3fPJ6TSsnQvWxZdGFCxDT 3B33zlCsYWklU7myIP2EJ3nyLUoXLsT69r0HpVC2VQfvEe7SoXPLmc6THf+m1HnZiR lCoP/WG4vm/wiMYunXqBSRWXb9Hw5BHuRVJlFTqnizqyGgcBHJWG9D5e2NvdeRzYGl RfuQc0M2cv//A== Date: Thu, 13 Jun 2024 07:17:38 -0700 From: Jakub Kicinski To: "Paul E. McKenney" 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: <20240613071738.0655ff4f@kernel.org> In-Reply-To: <08ee7eb2-8d08-4f1f-9c46-495a544b8c0e@paulmck-laptop> References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240612143305.451abf58@kernel.org> <08ee7eb2-8d08-4f1f-9c46-495a544b8c0e@paulmck-laptop> 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-Transfer-Encoding: 7bit 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...