Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp52937lqq; Wed, 12 Jun 2024 16:32:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUA2uWrVXGgsc2BXyjaqHrrr7/8+op7mOTmQvbAOohuK28z9qS6yCHur/Im2rZoFdQU7ihdS83R65A4ZkIufF/62SXd8wWsv2ZHzgeEzQ== X-Google-Smtp-Source: AGHT+IFS4KB3QS3tpiw3Jw2IfjYq9/OFapckcJ4oaZgsnl0COVCraRXYQ1bOGF0sq5VeVsSxaaYa X-Received: by 2002:a05:622a:1886:b0:440:f03b:798b with SMTP id d75a77b69052e-4415ac722b8mr40306081cf.55.1718235135392; Wed, 12 Jun 2024 16:32:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718235135; cv=pass; d=google.com; s=arc-20160816; b=ukDybhK0N0QJkHDrT8YYEz8pjRI6WOHqs0c6T1/T5WiN9z8yiBunMpIZSBSD4DasWk Ietjg8qOJL6UYW6T42JQ2kdsPwXmfXZOJgrqL5GHpIRr+kdHgk5EJwpJeg4Nowb+AAQm RPQjWkcCGMHuax9jC++Chgmf4OnwOufDc0bY0mu8E61l+kHA3BryqiWDOdM/OiGuhlN6 9ug0UOy1yK0wwS82BA6jVt6doSlwXnsiatspQl92KVjE5OybpvHkzKqsqQ7Cnp+IuD3r mOyfVZvXhcAWrVcKS9s1mP0YBUew6bOTIVaEmxyPp1fXrqBr+q30Lb7EKn7w4fMK/QG7 t5tA== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=qSAYPgRWQjgO94CvH8azZnzUEXB1002L22u56bSmdYM=; fh=w9u7U69M5GpXggmpy+qTS1qtKAP3DZX5HExSDQIQCIY=; b=uetufJU53ipmvIXy9jpMjaM5Nzxi+RHtPw6saQFoUZpBA7O8ucbl6qR3DoaCfVbkRR ULcvssPGnmGPrm3vpHC0Cj8RbkO7zwqNyizhU2UcSNMVQFW2U/AyScvo8vzarw5TfLG0 EonAZty4dr1cG49mAT4CrYqeI0Nx0uR2GbS4K0+HUyuUHD4ycRjvaSnaUoUTIy+6PF6f TVd8mruBt628oUm3z+u4PmVjf1hxCAd4LL5q2n/lhF5/YTvjxQBCm46qXyqK8ICuw89o vm6Km2wbgJCUsGamUEt/97qiffjdfKIF9xir+rLkcM/cU0ql10p/7H1McGqrKN5sbok7 S7iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=KuRtSsoX; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-nfs+bounces-3706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2fba175si2106961cf.407.2024.06.12.16.32.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 16:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3706-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=@zx2c4.com header.s=20210105 header.b=KuRtSsoX; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-nfs+bounces-3706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com 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 1FCFE1C2167D for ; Wed, 12 Jun 2024 23:32:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A282812D219; Wed, 12 Jun 2024 23:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="KuRtSsoX" 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 3344022092; Wed, 12 Jun 2024 23:32:07 +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=1718235128; cv=none; b=qNMAxb0SjeLRMjfxtNNj1iZIZjrMPrpLEcM4NkT5CNG8kBNZbIuOqWLZMpUNUuFDO10GkFu+j2a2C6ORg3Bp+kY8qE72n4WkUKM3aRLb5QzSRrTpUVUdgvxEPn427RRStRRzO3g/ZSmFuEb2Mchz3O39cFh1T4kX85sIhmHrKhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718235128; c=relaxed/simple; bh=vXTin2RE5LVdNvEj9vXYTNfzeL/DBSh7hlukwrm3jM8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KZWP7+Ef1VbQgeAFP9ulJCdFEyHoYp6q4EIpy4GZcbTEzkWkW4TbgPdIiF64VadtQFT8WnEsSJIQ+vdUKSoua9Xyc038ups93MZreOhMgQWD5ktikCEQDK+ox2Fr9LVMJMcy0p9iFX1nzwWK65SwhTWtnyZ4VmDkY5U7tcLQhzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=KuRtSsoX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79393C116B1; Wed, 12 Jun 2024 23:32:05 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="KuRtSsoX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1718235123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qSAYPgRWQjgO94CvH8azZnzUEXB1002L22u56bSmdYM=; b=KuRtSsoXnhoWtj8ILW+HbvJl66iT9qTq9bSBLEsqlgbz+NueejOfai90fuwt9YC44f1xei hmuw3gt1QJJwUC0wpdH+Cc3bGwXliu0JUoPBoQ3fEIPyMnLEjglwvNilIrEYYHTX8Rku8B FH2QYFekE0pqYf5XHoYxT03jyvV2YLs= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 7c292bc0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 23:32:03 +0000 (UTC) Date: Thu, 13 Jun 2024 01:31:57 +0200 From: "Jason A. Donenfeld" To: "Paul E. McKenney" Cc: Jakub Kicinski , 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: References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240612143305.451abf58@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=utf-8 Content-Disposition: inline In-Reply-To: On Wed, Jun 12, 2024 at 03:37:55PM -0700, Paul E. McKenney wrote: > On Wed, Jun 12, 2024 at 02:33:05PM -0700, Jakub Kicinski wrote: > > On Sun, 9 Jun 2024 10:27:12 +0200 Julia Lawall wrote: > > > Since SLOB was removed, it is not necessary to use call_rcu > > > when the callback only performs kmem_cache_free. Use > > > kfree_rcu() directly. > > > > > > The changes were done using the following Coccinelle semantic patch. > > > This semantic patch is designed to ignore cases where the callback > > > function is used in another way. > > > > How does the discussion on: > > [PATCH] Revert "batman-adv: prefer kfree_rcu() over call_rcu() with free-only callbacks" > > https://lore.kernel.org/all/20240612133357.2596-1-linus.luessing@c0d3.blue/ > > reflect on this series? IIUC we should hold off.. > > We do need to hold off for the ones in kernel modules (such as 07/14) > where the kmem_cache is destroyed during module unload. > > OK, I might as well go through them... > > [PATCH 01/14] wireguard: allowedips: replace call_rcu by kfree_rcu for simple kmem_cache_free callback > Needs to wait, see wg_allowedips_slab_uninit(). Right, this has exactly the same pattern as the batman-adv issue: void wg_allowedips_slab_uninit(void) { rcu_barrier(); kmem_cache_destroy(node_cache); } I'll hold off on sending that up until this matter is resolved. Jason