Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp536691lqp; Sun, 9 Jun 2024 07:32:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViGVF8+9P+a72UDCZFOcNUvpqngBy/fCQda95+vk8dHYyWHXvKkF2Wdod8dSq1YorMc49jfraSjYaWOVDyPNWuoe/qm5Ns+pfyMB6YLQ== X-Google-Smtp-Source: AGHT+IGe+GWEYUJ5rDWbPV/aLw+Uwqi0ocWMppWQBsS8dUre++lFN9+Tcm0I/RYOE/DHueDVHwea X-Received: by 2002:a17:906:564b:b0:a6e:4e0:8a56 with SMTP id a640c23a62f3a-a6e04e09202mr419779066b.32.1717943547669; Sun, 09 Jun 2024 07:32:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717943547; cv=pass; d=google.com; s=arc-20160816; b=XRjcCCx5eLNDlzRFktdK3o93ffi0J/WF5M/U6CPqVyInCcPo94hNabLb4peclKAFVc 9H21hFGLZjim9vOb+LjFm5/X6sqS1/S/jEJ92VqLf/BY93uC1AkEG1Xk86a2WV1NAKRb TL4+D+vIlnnf0RnDObOII93HRZ2keAHYBi6tGWXPwK1MYAEuYUXgE35l6KQg4DmSmlDV Rh+5/+GrHPfJ0kloLiTdup039iIMHQzCP2GgaM7WC6sx4sZyeEm5MU4NEMchx7pJclJM LGN6odOUjs8p1y88dpc0dtPFRtXbPHr+DeXSxjflNjUCEH9Vq3Pqerp2ltC8i/X2C2DG RKzQ== 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=OGc4ydJ4eusmUomyVU3xWXMC6r5K28VTQsQGs5He7n4=; fh=Fpz3eYgYN93cOFMt9q5g2qyj1Fhb6J4zAoGZIw91cPo=; b=Do7K02dwZDLcFe55deVmM4SU6QeqyzAYl17TdvcbgEP7f3STHvzRMFVFmR10ranERb DH0Y4t52ZkbpzjkpCuXm3eTPn8FMRct5vf8PruPYdDhepnLhC1xt12c5xYSu0lZ1dgdw PrbnerdX7Xzr1nQS5nbXQKCgqZLU9gxUy3g/2UdqDq9dZ75vu3NhAzVQ221TFZQIbs4K 0KDJ7uwwyDtuiOAjxf72T8qCu6o9PFIphAvcphp5Um81a6xQko9JWMnIEyL5svgiVq63 KASwjFnfrsiuxR70jJWQBNsmUDyeHvSElMTcN4yS1FyVUJmnPEXgQ462SpQRg0M5imrB /j9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=C8YNtAKo; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-207387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6eff9b9eedsi160296466b.2.2024.06.09.07.32.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 07:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=C8YNtAKo; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-207387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207387-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5DE2B1F21541 for ; Sun, 9 Jun 2024 14:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C840E4502C; Sun, 9 Jun 2024 14:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="C8YNtAKo" 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 C30F31CD39; Sun, 9 Jun 2024 14:32:14 +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=1717943535; cv=none; b=POjZxEjWQpniIb6x/S4bJKvORipCqWUNvGRJhIKBhh/mip4uVNitAzCNjZAW9DNWuuzT/CmpEem6RRzMmQMqGwhwuOQznvAn/xqAkrCfzhj5NEjrUajibRz0qeV+j/BRye8ncqlyE/AorK74SSorF1mBKU2jr0ST8web4r6ClKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717943535; c=relaxed/simple; bh=OGc4ydJ4eusmUomyVU3xWXMC6r5K28VTQsQGs5He7n4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fiXNuddWCaq4KvQmuOGoOujKJB1ONvRxc74sHuycTOg46RQoFINnG39Z9VO1KA95b81LTdQAxvEgJ8pYHdtWDI/DtwevKlekkIvcWTJvQbaKS+LzEvXsLdPNq/fPlPu3z0BR+EaTcAMWqzHrHKeegDm+PMv2NahBzjRNh2qkRxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=C8YNtAKo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 166C0C2BD10; Sun, 9 Jun 2024 14:32:12 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="C8YNtAKo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1717943530; 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=OGc4ydJ4eusmUomyVU3xWXMC6r5K28VTQsQGs5He7n4=; b=C8YNtAKo6799q3e2teULRncHewZjDG0PKWBml2ejuraEwPqTBCR0yckV5DJavzJ+nyu39/ p5Y8SEhy3MfwXFtokJDEaF5FFt7M7tNjrCxDKO5ZMoCGZV3dWJxOCcWWyoxcBduKRF7+kR EBoEJdoiM9FQ0K01sCrsLnMnVZ/d3AQ= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 979f40c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 9 Jun 2024 14:32:09 +0000 (UTC) Date: Sun, 9 Jun 2024 16:32:06 +0200 From: "Jason A. Donenfeld" To: Julia Lawall Cc: 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 Message-ID: References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240609082726.32742-2-Julia.Lawall@inria.fr> 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=utf-8 Content-Disposition: inline In-Reply-To: <20240609082726.32742-2-Julia.Lawall@inria.fr> 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. 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