Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3013111rwb; Thu, 29 Sep 2022 19:23:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM71IHrk83p0lCAQg/yCKwDzLYmpn3YhB4fETLdx+4F+bjClnI+X3nbAYwB/PTJUMMZc/cqt X-Received: by 2002:a05:6402:c45:b0:442:c549:8e6b with SMTP id cs5-20020a0564020c4500b00442c5498e6bmr5983173edb.123.1664504603040; Thu, 29 Sep 2022 19:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664504603; cv=none; d=google.com; s=arc-20160816; b=levEEjgADf1A8TzYwGPzXeA/m7VGEjkI+grGV+EhE0slRocDs0PhDVWvlewMzBIyNF nhz7WKu2DpmAbCN2NNfdVyCA4Ysovv0XZjKhAHw2DVsqLmFRJwnbte/92MczybhUE7U9 rlV1Pqtm3NkzvtYlM014xiF70tvX50OEziLf5shHyTmpmdDxbrmeaEhrZ2wEFq0h/wbg 89732kBAQcbv67QZ76E9VRJkGuRaP2PjXYPVo9+6WuK7JsDJZTEl0iKKNiMVxbZ3iNbn hTHSLltaZElstgCVguHTHbIH6T9+nEGYQBWXgVCp53unydNkNFFvMK44k3eAW4CyH1Gv VpXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0tRwiIQpWOFupYvqhXokh6RfkI4gIdS0eRQRo9qE6Mg=; b=CYVJl5KE1u0wkmcmDrnIW5RopTepC2qx4W6692amIZ9VIt1RcMP1FQRXjvWA2bYYfr YSZBO7pIKT05l6yxk9dMJzbI0hiljy2iqEOavWLFHjaqThJDhd3TKAVHVIEUYONnDomB eZmuGyGF81HnbZtF+Zas5vPpJCoZwvFwI6G5QWAt0SgX3NnYPBjN8l0DkxqFK/ty40Yd NYIIaqDmP785kCWBtFVDsMs0s+X8AjtBW3D1kL5QPj/uz4FDZcNFMlqZZ7Lg4WxUMdxD BfGlsjZuNvzAYfFpCIKdtPRoECSGBxIdcnzQXwRe3n9JPgrEfuxdS8X86LTgamVdmeiv /gHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EUrSjzj3; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh6-20020a170906a94600b007707a47c3d5si680844ejb.944.2022.09.29.19.22.57; Thu, 29 Sep 2022 19:23:23 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=EUrSjzj3; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbiI3CLz (ORCPT + 99 others); Thu, 29 Sep 2022 22:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiI3CLn (ORCPT ); Thu, 29 Sep 2022 22:11:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E9C128708; Thu, 29 Sep 2022 19:11:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A71BC6221B; Fri, 30 Sep 2022 02:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEA53C433D6; Fri, 30 Sep 2022 02:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664503899; bh=610ye87RXM6t7qZy9nt7HbkP7YXAdauTUSXPlb8Dodw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EUrSjzj3zyT68YvK9BjyTzILIqq0TgKB7LwQPSxaTSf1zW0qgW7ZZCtBCe+ek6NKX DIzkXHgtLJyMTi1xgk9syPQBgWBoAnASUTwLOsdeDKSxMnPxjmbJ2pgU6uSZFxLFts 3WewPxS6XcY1aFhyLHf8ItbiHq5nHDYC7LHM0Lt952WWOhVRCswU7yKiveT8pL2xs1 twPyl0qRNmgpK5IOEVIFmXQv332hsNZ4TNzePi4eeNtBOWBzBF5d7pshFvZ/uG3f/9 Mtb1TLjnBEU+oMee51I3uNVMiinAcyFtytGKjK555VVkIBcc8jHiJfp/Bg1Obr7Nnc ba09djJs0xNKQ== Date: Thu, 29 Sep 2022 19:11:37 -0700 From: Jakub Kicinski To: Kevin Mitchell Cc: Antoine Tenart , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: new warning caused by ("net-sysfs: update the queue counts in the unregistration path") Message-ID: <20220929191137.7393bee4@kernel.org> In-Reply-To: References: <166435838013.3919.14607521178984182789@kwain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Wed, 28 Sep 2022 16:20:33 -0700 Kevin Mitchell wrote: > > As you said and looking around queue 0 is somewhat special and used as a > > fallback. My suggestion would be to 1) check if the above race is > > expected 2) if yes, a possible solution would be not to warn when > > real_num_tx_queues == 0 as in such cases selecting queue 0 would be the > > expected fallback (and you might want to check places like [1]). > > Yes this is exactly where this is happening and that sounds like a good idea to > me. As far as I can tell, the message is completely innocuous. If there really > are no cases where it is useful to have this warning for real_num_tx_queues == > 0, I could submit a patch to not emit it in that case. SGTM, FWIW.