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 9E54EC7618A for ; Thu, 16 Mar 2023 18:06:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbjCPSGq (ORCPT ); Thu, 16 Mar 2023 14:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjCPSGo (ORCPT ); Thu, 16 Mar 2023 14:06:44 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5567130EB for ; Thu, 16 Mar 2023 11:06:43 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id a2so2670956plm.4 for ; Thu, 16 Mar 2023 11:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1678990003; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8mCt8prfCSQ7oDsx1bTuDrvYgv/LfInuW8e+kaRN+58=; b=N7kAVSsQ2PohremsNoTkrBI76k1fo4dMkpIMDKU+nAYfLZWsQ7F29kyOiVeTJdYwZX Fd65aCXwSsf023/A96yZN403ncG2Q8IWQoinGlAomyWDPk79ic0Fpp+DHxUwB7utP5OV ZX4wSoTBTeEV9AAb5l1N8EFXjOHRnq7lhBgBg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678990003; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8mCt8prfCSQ7oDsx1bTuDrvYgv/LfInuW8e+kaRN+58=; b=Y9y0KDtc1vRMJQOerekQCH9z6JhxU+Gc/404qD8arIsAqfVdOsco8W4LWdglFN6MAX XLJ461KOnDr+3G+e2wahetzoHm63HfwpcgH0u+iG3wLtNVmHJNRqDOltW4oRTQWt/MP5 p+cuBelyQDLn5LGQXP1awOXFzMO34VWJ26Ac35sKsP1M0l/N5BnUxEuDaz71JEHlDmT5 wNS0ID8qMp51QRLiTAcW7t6VtKsBPvAuqDv7ZZCxaOGvola7emUOj2ZL6ROnrqldoSpF 8gyaR+AjPO+G3Oq/YZ6muZ+hNt0Nr7qYxXzThd3DwkpI3xGG6FjffnIw2aWD+U1jp1yb ysnw== X-Gm-Message-State: AO0yUKUa7Y7slveTVg18eXlf2I3iRwjJzqaQxd2Xs31dIuibVh97VIYn eig3rXRmmgTGCGmAuasfmVa1yfSz7ZyrAfAubF2YNQ== X-Google-Smtp-Source: AK7set+M3yi0RkByN/JVYAXsavvcjHycEh223j6ZkIHzA6icQqmZXnmsToLX0ZkwVT+60lYsEynMe/S+6cJ5ovdwPBo= X-Received: by 2002:a17:90a:5386:b0:237:9cbe:22ad with SMTP id y6-20020a17090a538600b002379cbe22admr1400389pjh.5.1678990002656; Thu, 16 Mar 2023 11:06:42 -0700 (PDT) MIME-Version: 1.0 References: <20230315181902.4177819-1-joel@joelfernandes.org> <20230315181902.4177819-12-joel@joelfernandes.org> <996f0981-98f4-5077-12b6-bb093bbd28be@datenfreihafen.org> In-Reply-To: <996f0981-98f4-5077-12b6-bb093bbd28be@datenfreihafen.org> From: Joel Fernandes Date: Thu, 16 Mar 2023 14:06:30 -0400 Message-ID: Subject: Re: [PATCH v2 12/14] mac802154: Rename kfree_rcu() to kvfree_rcu_mightsleep() To: Stefan Schmidt Cc: Alexander Aring , Miquel Raynal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Girault , "Paul E . McKenney" , Alexander Aring , linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 16, 2023 at 12:41=E2=80=AFPM Stefan Schmidt wrote: > > Hello. > > On 15.03.23 19:18, Joel Fernandes (Google) wrote: > > The k[v]free_rcu() macro's single-argument form is deprecated. > > Therefore switch to the new k[v]free_rcu_mightsleep() variant. The goal > > is to avoid accidental use of the single-argument forms, which can > > introduce functionality bugs in atomic contexts and latency bugs in > > non-atomic contexts. > > > > The callers are holding a mutex so the context allows blocking. Hence > > using the API with a single argument will be fine, but use its new name= . > > > > There is no functionality change with this patch. > > > > Fixes: 57588c71177f ("mac802154: Handle passive scanning") > > Reviewed-by: Paul E. McKenney > > Signed-off-by: Joel Fernandes (Google) > > --- > > net/mac802154/scan.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/net/mac802154/scan.c b/net/mac802154/scan.c > > index 9b0933a185eb..5c191bedd72c 100644 > > --- a/net/mac802154/scan.c > > +++ b/net/mac802154/scan.c > > @@ -52,7 +52,7 @@ static int mac802154_scan_cleanup_locked(struct ieee8= 02154_local *local, > > request =3D rcu_replace_pointer(local->scan_req, NULL, 1); > > if (!request) > > return 0; > > - kfree_rcu(request); > > + kvfree_rcu_mightsleep(request); > > > > /* Advertize first, while we know the devices cannot be removed *= / > > if (aborted) > > @@ -403,7 +403,7 @@ int mac802154_stop_beacons_locked(struct ieee802154= _local *local, > > request =3D rcu_replace_pointer(local->beacon_req, NULL, 1); > > if (!request) > > return 0; > > - kfree_rcu(request); > > + kvfree_rcu_mightsleep(request); > > > > nl802154_beaconing_done(wpan_dev); > > > > I just saw that there is a v2 of this patch. My ACK still stands as for v= 1. > > > Acked-by: Stefan Schmidt Thanks! Applied the ack and will be taking it via the RCU tree as we discus= sed. - Joel