Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp538313lqp; Sun, 9 Jun 2024 07:36:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcQsNwe/l8/N6axNJRcbKE/N0yxyOVfr8sk8+5gB17TmWRUmlGJ5N7zmsBW54rP8EkXEsh17iEqTS+KleATuKmzYc0HWIHx+RqUiXDrw== X-Google-Smtp-Source: AGHT+IFLVQJgdWWjs0AGOCrN2Oe7LWuqdVEMLXI/eZUB+BSV5fMvuX8nFowohiGYocoW12aYcI9e X-Received: by 2002:a05:6359:4c8d:b0:19f:4a60:e6f7 with SMTP id e5c5f4694b2df-19f4a60e9acmr299291755d.29.1717943797350; Sun, 09 Jun 2024 07:36:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717943797; cv=pass; d=google.com; s=arc-20160816; b=DQ8Ps5njw0SapMWfbo18ptfjco5TTrPvw1Mwgw4CHNxx9Sig2TRnMkrB6DsGrBkhIh bakNgv50lArGpCIQz01X8dhBp2jH8tHlsxR5IMDSy3NxWeAV7kwMA3DBqVfu+hdYd2Tx Ab3B+Gn/XEfua8Oyz2egEO8fUHZfOOg9kCqDcuw796XDor2t85dmaxpJ5u2YeCaee5yr faCsxLFqLUyTV1wOIyYp6O0EgRV6MVFfRGFnuvOsL1/u/7uby5LYyeRFQW5kLJdK1EOD wXQHTFcuNjhpjhKwIr+KxAW0B8boEUOvnLf2KVdklw+fCXA5l0wkZPE+as4/B7iR4ZKp GJ2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=qCa9AGh+fq/1VReLn9hghMXIAlqi9wewi4dObNvl2UE=; fh=38iVnYZH32XWS05h5kYAtwlfX8UPxC14ZF0uOqOe5Qc=; b=nvotAPTpt6ChYpU5JBMLxa+6ZRYzW99m/3rmO7bDCf0/Q8U8n9xq7OsooGtYkMnEx4 tyK4aFB5KDZ+xGbTLxWqTrTii9VFeacs76cH2aH0jrlL+3XnJOKWRFwRjp2xWIykEIIO y+dhrivyB6dR5Uv9kdIcLcAeUGqMb3MGh4UWUV9Cc2u5NhnW5bPuILN8HXvcC8+BIo8p SVKGY1PXonZivRYxzKBFfEqyewxk422tEyUhK2r2WFJs9IOO+UwFDlFH/yzcvogAKtof yKwRFlbozRK5N/q94k9UEnyz/HrnFWO4q2N6F48OTzdGBfvrjJ4kZNUwrQUBZo2F66dc P67w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=h6kIxiZW; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-207388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de20831cd8si3503370a12.160.2024.06.09.07.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 07:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=h6kIxiZW; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-207388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr 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 1D5C82817BC for ; Sun, 9 Jun 2024 14:36:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBA7445033; Sun, 9 Jun 2024 14:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="h6kIxiZW" Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (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 D7AE863C7; Sun, 9 Jun 2024 14:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717943783; cv=none; b=egaU1ZXlMT7hy2P9WKQZIAm7IZiSo6AwZGeEYK+uceQ4+FwnXHmFrQmN0iMwnweps/jkhFrY8oICMwbqqwPiVnJ3lbRmd+CwgtAIi1vA5m7LI5MUNj8f5CceF+qjP9lubiA4vZ4HW7NdJ1AtikWNHcel9v4Txr8rqgln8jtsbYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717943783; c=relaxed/simple; bh=qCa9AGh+fq/1VReLn9hghMXIAlqi9wewi4dObNvl2UE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=VNeP4OtvwLc+QxLV6VSpON8NEpZf43q5ESi32gC8R54aCZDoMWcx16uTIm0I9Nljz7kWC11NC/MvpsMKquDpMJ9fqi3FRpF16smAjpBxGlvPTihtvzc3uTDCq6g5iwk0j2yhOph3tjeDc0nY4GtuS8A9857LHMkye1HtoPeYFBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=h6kIxiZW; arc=none smtp.client-ip=192.134.164.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=qCa9AGh+fq/1VReLn9hghMXIAlqi9wewi4dObNvl2UE=; b=h6kIxiZW/dd5uSxCiMQ/CALnhPG8doWfxvHov7Bfnq8f9kW3czxcYGrS mEPMuHLltMD3xw+m4HWBjt3QCCDle7/X0SuZWD3hD1jy/dg91fiWfINpK jqi1Ts2BPOeiqQUZONpCbJQGgZrL+vyhNq+VNaR8jMW4r5Xi9iJrgXLJY s=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.08,225,1712613600"; d="scan'208";a="169717092" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2024 16:36:16 +0200 Date: Sun, 9 Jun 2024 16:36:15 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: "Jason A. Donenfeld" cc: Julia Lawall , kernel-janitors@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E . McKenney" , Vlastimil Babka Subject: Re: [PATCH 01/14] wireguard: allowedips: replace call_rcu by kfree_rcu for simple kmem_cache_free callback In-Reply-To: Message-ID: References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240609082726.32742-2-Julia.Lawall@inria.fr> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Sun, 9 Jun 2024, Jason A. Donenfeld wrote: > Hi Julia & Vlastimil, > > On Sun, Jun 09, 2024 at 10:27:13AM +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. > > Thanks, I applied this to the wireguard tree, and I'll send this out as > a fix for 6.10. Let me know if this is unfavorable to you and if you'd > like to take this somewhere yourself, in which case I'll give you my > ack. Please push it onward. julia > > Just a question, though, for Vlastimil -- I know that with the SLOB > removal, kfree() is now allowed on kmemcache'd objects. Do you plan to > do a blanket s/kmem_cache_free/kfree/g at some point, and then remove > kmem_cache_free all together? > > Jason >