Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D09C3C05027 for ; Wed, 1 Feb 2023 15:55:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232026AbjBAPzC (ORCPT ); Wed, 1 Feb 2023 10:55:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232954AbjBAPyr (ORCPT ); Wed, 1 Feb 2023 10:54:47 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B91EE15C96; Wed, 1 Feb 2023 07:54:12 -0800 (PST) Date: Wed, 1 Feb 2023 16:53:43 +0100 From: Pablo Neira Ayuso To: "Uladzislau Rezki (Sony)" Cc: LKML , RCU , "Paul E . McKenney" , Oleksiy Avramchenko , Jens Axboe , Philipp Reisner , Bryan Tan , Steven Rostedt , Eric Dumazet , Bob Pearson , Ariel Levkovich , Theodore Ts'o , Julian Anastasov , Jiri Wiesner Subject: Re: [PATCH 10/13] ipvs: Rename kfree_rcu() to kfree_rcu_mightsleep() Message-ID: References: <20230201150954.409693-1-urezki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230201150954.409693-1-urezki@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Feb 01, 2023 at 04:09:51PM +0100, Uladzislau Rezki (Sony) wrote: > The kfree_rcu()'s single argument name is deprecated therefore > rename it to kfree_rcu_mightsleep() variant. The goal is explicitly > underline that it is for sleepable contexts. > > Cc: Julian Anastasov > Cc: Pablo Neira Ayuso > Cc: Jiri Wiesner > Signed-off-by: Uladzislau Rezki (Sony) > --- > net/netfilter/ipvs/ip_vs_est.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfilter/ipvs/ip_vs_est.c > index ce2a1549b304..a39baf6d1367 100644 > --- a/net/netfilter/ipvs/ip_vs_est.c > +++ b/net/netfilter/ipvs/ip_vs_est.c > @@ -549,7 +549,7 @@ void ip_vs_stop_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats) > __set_bit(row, kd->avail); > if (!kd->tick_len[row]) { > RCU_INIT_POINTER(kd->ticks[row], NULL); > - kfree_rcu(td); I also found this kfree_rcu() without rcu_head call a few weeks ago. @Wiesner, @Julian: Any chance this can be turned into kfree_rcu(td, rcu_head); ?