Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2698590rwb; Thu, 17 Nov 2022 14:53:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf4K68L+4uJfCr+vkz+R46sXcA1WZ7rDxgOWgpXLqmcfH44h67gTE9DDJHKiAXenNG4rSXxD X-Received: by 2002:a17:906:f281:b0:7ae:3b9e:1d8a with SMTP id gu1-20020a170906f28100b007ae3b9e1d8amr3638891ejb.581.1668725584470; Thu, 17 Nov 2022 14:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668725584; cv=none; d=google.com; s=arc-20160816; b=toHkG3VJOngH4OOXpIl9cxUQYnmPCGluj+ezsCdqoBedg6V83wTGPZLQmC/Sd4FG+o IxNb2XInXPyIGrvHa7/yB0flwUMcrcHuslFzHmfVDKSoZwREUx2B69DURrdiQt0V2sX3 VLw3BFbZX/vBGpkkKQXHMOCQfcBJakWAx+8zM7eIaY6TfQhpV1Z6RQPa8tuAEtZ4icwG 2tlIg+DQh35czY0ykbAlYTEcWmqvpmeTRihhklI0qi04T0qQI2Mj5IvwbFiuRXOUYLGp KSvF6Fo0pSD9bd/yoTXQL7ujmh3KeyoAhzOmfgS+/B7X06B0jSdzvuWO0c9VcVY4yqc8 fFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=sdJwHvXndE3LnyuSwNgHfLaxUa5yGh5fKAZ/2I7kMxw=; b=tpR+CZe/F0MHTIJV7F6ilmBPVpE1Eh/Dy2P6Xi15bJdvMvfap2ksP1Kpct+jE0PIQr q8YRa+ngWn34OdSMf6HkcDBXSUmf4mEBLK/dyFicH21qH2xtKahjEO0c+xH0l100aEAA RDk/+8qr75B9IqpgFk84SYNJdCS5GJujR7WMEivqIKFD6BSoKQJP3L7A9TmCNaJPVO6B 82OUtR+sEvkvS1TL81WGg2Hw5nm9bgsbVxfmmUhuONa4JV6Tz3VL5jLKCstluF2hJRjo DAG5+pMTRPX1n5O0WTi1MahlCkqR/ZneuO+ke/Zqa1PBJZFX47yUbAaTGl6XZY431yWZ gjwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=Hq8SHtfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a170906179400b007ad9885d2b1si1355756eje.301.2022.11.17.14.52.42; Thu, 17 Nov 2022 14:53:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=Hq8SHtfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241111AbiKQWAM (ORCPT + 92 others); Thu, 17 Nov 2022 17:00:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241116AbiKQV7w (ORCPT ); Thu, 17 Nov 2022 16:59:52 -0500 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96918A464 for ; Thu, 17 Nov 2022 13:58:28 -0800 (PST) Received: by mail-qk1-x72e.google.com with SMTP id v8so2220031qkg.12 for ; Thu, 17 Nov 2022 13:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=sdJwHvXndE3LnyuSwNgHfLaxUa5yGh5fKAZ/2I7kMxw=; b=Hq8SHtfQDMLJrzI1zZisebHGzHqdL4OgvuhVqmJqF4exqNzl1GwiShmFzcKxci0s/y 2nsm8XGhEy0YccW0bWQOK2pVfZ2+byGo1j2wjwhculPCpRCo5pjJqj+dtp64qmsTTjke moW7TrwAPa1QkM65Y2rCfiLDZ25T78zCqBHQo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sdJwHvXndE3LnyuSwNgHfLaxUa5yGh5fKAZ/2I7kMxw=; b=hCbrd0jfhbhrMMl7VorIY5DhJyzqxVZPukdckaFDYc97r5hSXkTydlxqpVxYWoVO15 4LerwHPq3X05Qze5JdwOoDtRIwZPSg63hf9RUNoxifitZnGZx6ysgcsCLABtrF5kFWR4 dmp9J6cZsTl845yZ5a4l17lTmEaCTZ123Z4Gm05eddk8f6b2JyfZNRnQjk+b5FVnkWug V4Y0mmIBTUZuT/rmdyRxlXDbh8X21gEEpj9SW2iLyYFbEBC17R7c9+JdSG2hkONiJm08 a15UP667x0H9oFfMXLRFlG/G5TRz1EwXr57Qforxf1ATVzphjvly4ZqQYRsv3T0I40EL 6vew== X-Gm-Message-State: ANoB5pnjcFuQMmtWUEvm3G/V7ZLnWr/3atmQj6AWjXfOxS92aZW78GMM jp+828Ku6liyI8HR68RQjdklXA== X-Received: by 2002:a05:620a:530c:b0:6fa:6e0c:ab79 with SMTP id oo12-20020a05620a530c00b006fa6e0cab79mr3651369qkn.74.1668722307650; Thu, 17 Nov 2022 13:58:27 -0800 (PST) Received: from smtpclient.apple (c-73-148-104-166.hsd1.va.comcast.net. [73.148.104.166]) by smtp.gmail.com with ESMTPSA id j11-20020a05620a410b00b006bba46e5eeasm1261335qko.37.2022.11.17.13.58.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 13:58:27 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Joel Fernandes Mime-Version: 1.0 (1.0) Subject: Re: [PATCH rcu/dev 1/3] net: Use call_rcu_flush() for qdisc_free_cb Date: Thu, 17 Nov 2022 16:58:26 -0500 Message-Id: References: Cc: linux-kernel@vger.kernel.org, Cong Wang , David Ahern , "David S. Miller" , Hideaki YOSHIFUJI , Jakub Kicinski , Jamal Hadi Salim , Jiri Pirko , netdev@vger.kernel.org, Paolo Abeni , rcu@vger.kernel.org, rostedt@goodmis.org, paulmck@kernel.org, fweisbec@gmail.com In-Reply-To: To: Eric Dumazet X-Mailer: iPhone Mail (19G82) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Nov 17, 2022, at 4:44 PM, Eric Dumazet wrote: >=20 > =EF=BB=BFOn Wed, Nov 16, 2022 at 7:16 PM Joel Fernandes (Google) > wrote: >>=20 >> In a networking test on ChromeOS, we find that using the new CONFIG_RCU_L= AZY >> causes a networking test to fail in the teardown phase. >>=20 >> The failure happens during: ip netns del >>=20 >> Using ftrace, I found the callbacks it was queuing which this series fixe= s. Use >> call_rcu_flush() to revert to the old behavior. With that, the test passe= s. >>=20 >> Signed-off-by: Joel Fernandes (Google) >> --- >> net/sched/sch_generic.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>=20 >> diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c >> index a9aadc4e6858..63fbf640d3b2 100644 >> --- a/net/sched/sch_generic.c >> +++ b/net/sched/sch_generic.c >> @@ -1067,7 +1067,7 @@ static void qdisc_destroy(struct Qdisc *qdisc) >>=20 >> trace_qdisc_destroy(qdisc); >>=20 >> - call_rcu(&qdisc->rcu, qdisc_free_cb); >> + call_rcu_flush(&qdisc->rcu, qdisc_free_cb); >> } >=20 > I took a look at this one. >=20 > qdisc_free_cb() is essentially freeing : Some per-cpu memory, and the > 'struct Qdisc' >=20 > I do not see why we need to force a flush for this (small ?) piece of memo= ry. I=E2=80=99ll try to drop that and rerun the test, and get back to you. It co= uld be that there is a different callback that this flush() is compensating f= or, or something. I am pretty sure at one point, dropping this patch made th= e test fail most of the time. Now it passes 100%. I=E2=80=99ll also attempt to collect a complete trace, maybe I=E2=80=99ll le= arn some networking code in the process.. Thanks!=