Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2425300rwb; Thu, 17 Nov 2022 10:32:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6AvrayhPnR96gZYYaCAp+w3iyS9q3r8eZPLYEvRgzyftsUeBZBoquEWJiXLNsc6i1OVlep X-Received: by 2002:aa7:c941:0:b0:469:172:4f46 with SMTP id h1-20020aa7c941000000b0046901724f46mr595774edt.130.1668709935958; Thu, 17 Nov 2022 10:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668709935; cv=none; d=google.com; s=arc-20160816; b=JVbDVRc2lzRGQQuIUbAD4MZREDsTdRMJQpwgORnMcPhDiaPGaO2U+Gv9H48Rguvi3s 8KMaR5jsJqnlwL0DC3LqWN4wvlf5KDbhuEUqbIWPWjOYs5yLAC15FNTvD+DQIzjtN5Xu IFYir8ntKi2W+QB/keHqSMKdsZTbnHinfbWgP3lyRy1SyjD4y4Qs0BTGHpY/WmNyhBZw vCUy1cbhmQVifwemAizJ8nQzkq8A527D3mNWQkYnQfG+XgUZIRyRIVwkwgIznHqIKWRj JbOAFrZzqgBpxsbfYhs5NULJN4A80PpNopOqiAHkN3LgshYdzg05Z7oCGfmuzh5wPyyX 1Dug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Jfw5a5L8IvV/kvGKF/DMQqdusHiCh0R6uAmQu8nYnr4=; b=cWmCpEn8EttfTcPl9SZ2yF56usObFdhj9O0Yc3AwZXFj7FMG4PRrACfCp0xzayGR1A 68tSPFVv0vKqVp+AgWUpd9EejxTRbG852NQJqMiNh61CtYvq822EPMKtlWYXul1MGzRz zGQe8OlPhq4q5u3SMH3g3wQbU5H7aqC94q5eJaDBMVHI9FRXa5XBTy/d3l6/lqQl0UNa CpfWSMFSZrhthor+Pkm6REg9afm2ADSPmf5qBFn0KGWuGi8zLNZqi1Zgzae49aXFgxS2 jEu0Z/3csBYwLUNAbUbBMfwdLoWReYbnaTg6hDmw12J4yowGMMgohKK3EHvl8heiDKLo mIag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hhaKe9nm; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq24-20020a056402215800b004614acc0706si1380641edb.250.2022.11.17.10.31.52; Thu, 17 Nov 2022 10:32:15 -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=@google.com header.s=20210112 header.b=hhaKe9nm; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234914AbiKQSWh (ORCPT + 92 others); Thu, 17 Nov 2022 13:22:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240196AbiKQSWf (ORCPT ); Thu, 17 Nov 2022 13:22:35 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38CA74AB5 for ; Thu, 17 Nov 2022 10:22:34 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id 7so2839115ybp.13 for ; Thu, 17 Nov 2022 10:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Jfw5a5L8IvV/kvGKF/DMQqdusHiCh0R6uAmQu8nYnr4=; b=hhaKe9nmlIc9X4Cmc8AhvoNPtHtitfsgQ7h0eCN2o7MPAQzrzYJx3f+IIL6a1Ve0dA a+Gl2GeZdlwbc12piw1ri0yNfOPBrcCqEoJHXdPcrE5gY+PYmkVcpnWvfJmCTn83dmSW PS97FcUQeBOy89fduiZRqVY8iiv8sD+jsWGf5njDs575tBaCKH7IFL1XhQPK61vTZ1Ao EXt6bjQr4DFr7ZBr/4kUU4xyCaUIz1KvuZbTyDlbtcPXu/rHbBCv+mBOqFJWTnBN8SkJ RxYk9uEkt1GsQ5cWr3PV2SlNgwG2j4Cp/UWegVlnpa8YVHUN4EWyl41cEecoL4USxfo/ A3ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=Jfw5a5L8IvV/kvGKF/DMQqdusHiCh0R6uAmQu8nYnr4=; b=wh1XdeE93tQBjP5jC/US/gr2yd9J6JQAu0V0mwZk+QU8f9UkuhpiqJjyKKcRp3ExDB p4nOdb/zNFZoa4ZQN/D0Ft5AvrN5oc1MNIzPGddDX7AEBHAjpdgrFHIAunEMQlSt8cpz Lmcbl8GNsRte6yRKq0plhjXaW8Jw8KFL9ZxXXnTNw4a+Q7yxtE7PoKQdwwUqWzZJCCnC ZtRD5d7PhPwH2HkCI/GhFxrqPY7lNiNvnZtQwSJyzpjvvgtgfGCry8o2sBEOAuvVsCRz YzEXI34Ci/y5wHD5vn/jY7vr3lyIl+H7QgCdRgKzdPNNDWQF4K0yHZOBm+Ub1cI5An06 XuQg== X-Gm-Message-State: ANoB5pna/kvfYCoH9ZJF+AXn0zqVdB1iCEWpzhYvRJ0s2C9YQXWKzk2C m4Tg8nDkPiRMSWndnXZTNP8DuAQQTBwvOZJxvdWXpvG6zIw= X-Received: by 2002:a25:e90f:0:b0:6d2:d710:7454 with SMTP id n15-20020a25e90f000000b006d2d7107454mr3122162ybd.407.1668709353799; Thu, 17 Nov 2022 10:22:33 -0800 (PST) MIME-Version: 1.0 References: <20221117031551.1142289-1-joel@joelfernandes.org> <20221117031551.1142289-3-joel@joelfernandes.org> In-Reply-To: From: Eric Dumazet Date: Thu, 17 Nov 2022 10:22:22 -0800 Message-ID: Subject: Re: [PATCH rcu/dev 3/3] net: Use call_rcu_flush() for dst_destroy_rcu To: Joel Fernandes 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, jiejiang@google.com, Thomas Glexiner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Nov 17, 2022 at 10:18 AM Joel Fernandes wrote: > > On Thu, Nov 17, 2022 at 5:49 PM Eric Dumazet wrote: > > > > On Thu, Nov 17, 2022 at 9:42 AM Joel Fernandes wrote: > > > > > > > > > > > Yes, I agree. Your comments here have not been useful (or respectful) > > > so I am Ok with that. > > > > > > - Joel > > > > Well, I have discovered that some changes went in networking tree > > without network maintainers being involved nor CCed. > > > > What can I say ? > > > > It seems I have no say, right ? > > Sorry, I take responsibility for that. FWIW, the rxrpc change is not > yet in Linus's tree. > > Also FWIW, the rxrpc case came up because we detected that it does a > scheduler wakeup from the callback. We did both static and dynamic > testing to identify callbacks that do wakeups throughout the kernel > (kernel patch available on request), as the pattern observed is things > doing wakeups typically are for use cases that are not freeing memory > but something blocking, similar to synchronize_rcu(). So it was a > "trivial/obvious" change to make for rxrpc which I might have assumed > did not need much supervision because it just reverts that API to the > old behavior -- still probably no excuse. > > Again, we can talk this out no problem. But I would strongly recommend > not calling it "crazy thing", as we did all due diligence for almost a > year (talking about it at LPC, working through various code paths and > bugs, 4 different patch redesigns on the idea (including the opt-in > that you are bringing up), including a late night debugging session to > figure this out etc). Apologies. For me "crazy" does not have the same meaning, apparently. I will try to use more neutral words in the future. > > Just to clarify, I know you review/maintain a lot of the networking > code and I really appreciate that (not praising just for the sake). > And I care about the kernel too, just like you. I had no doubts about that, really.