Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1463632rwd; Tue, 16 May 2023 18:16:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5R4j/7BcGbRhp4OLrJm7WghJWMetCj+RUOlWdbIabJkDkHEqUHh+mdlPC82/2gUY6bfyUC X-Received: by 2002:a17:90a:5a4b:b0:253:32b8:8bfb with SMTP id m11-20020a17090a5a4b00b0025332b88bfbmr2370629pji.35.1684286183384; Tue, 16 May 2023 18:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684286183; cv=none; d=google.com; s=arc-20160816; b=ujEtTBDb7htN6c+S3EkkpP4H4+0cnDK8fnfhxON+sSmY4vFLNYVne2TvLoM7WY1Qb5 nQ+pNbvwuVoVtZsrm2NGWEkxfAqxV3z03diEZBBgOGfRCDlV8k4IwUlivuIShoBR/+xe o+5FyN9dmxtKB/MxaZ9KMD82ZFNBPdY65FU4O1B8AzT8UXm6MePy0GwMlJHyklqireZd 9RR2alYryAQ3qQIW5uXZGiHVRN6z+pGLukazyDsOIyLWFTCFV1aA3VWHYSk+0EWojhvJ KHntEVY+K4l9I8hhqrOfFA7ZVgxsVhTYWYXLkxgXbHfv35HmAsgsyh+U/vsn2A3BkYtl qc9w== 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=8n91Hi+OyvcliAINwMoaYyeDCY1W6zWtSHonKoEGeec=; b=yIbCpyZV2COSYmCGjD0MBrOyJ3lPAaRheEYu5G4AAH9M6lwso7QVBv0D5uiJ1yYm6u LgPkX3g/RpqrgPqfPgw4zHhu7MR2x3zpFy8ITJH/DJkDH9N0PfwCC7BuWPG9laJ8BVOn SgHHlm1VrayiD0AhlOHNWfsRcZOMFl7yzwVBM0HQrpGn5aDIhajlVh9G7DS7ymajsJhJ A6L7VElv26MQLeqnvYevWPc9uu6O5jz2XqfVE/CE3dFYiNiU+Pe+XnkGKev/E/S1i0g9 MGzSYJCGIdyhwsRF/tJ0zcL0Hd5ummNcIAwW5GyjLV+RRjWzQo7ABoN1orQzxfwh8cc1 LWxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HZ3jKn/4"; 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 t28-20020a63955c000000b00512fab9493dsi19985162pgn.740.2023.05.16.18.16.08; Tue, 16 May 2023 18:16: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="HZ3jKn/4"; 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 S230360AbjEQAjI (ORCPT + 99 others); Tue, 16 May 2023 20:39:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjEQAjG (ORCPT ); Tue, 16 May 2023 20:39:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9872F9E for ; Tue, 16 May 2023 17:39:05 -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 353B2636E3 for ; Wed, 17 May 2023 00:39:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E527BC433EF; Wed, 17 May 2023 00:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684283944; bh=Zslh2K+EiuqVbcrhfXH9F3Qcm2xfSzOpQ7kfI0xJDsc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HZ3jKn/4isWeBlgY0+8j3SRSjUdYBNm4ec8PBhTmmnZzG/PqvIiJJ3KCbKdAcSvyi MmhxMHXLd+DpHywy7DkanNFAH+79ZFyYspjN94j25ZzoZlCy2DSEmbu0YCHx5r2bTE abJWlytcrRsVdh9+iTDxq5asQwM6oipzWMyK6NBUbVoJTlTHGitf73iOdiX7MRWtgV xmJ5JMJlReyH+Yq433eJEY3DG5sDFKCeNSL5m2su+sXI+NCRuJBPAIVDyIpio1/bNa FTujAuXnKtOg9QYwyMmOEw9GLYVD1Kv+r34GcqRQLHa0ws7CGLOWZpJDZrLBE6jkGc c5JaDjG5dtS3g== Date: Tue, 16 May 2023 17:39:02 -0700 From: Jakub Kicinski To: Peilin Ye Cc: Vlad Buslov , Jiri Pirko , Daniel Borkmann , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Peilin Ye , John Fastabend , Pedro Tammela , Hillf Danton , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang Subject: Re: [PATCH net 6/6] net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting Message-ID: <20230516173902.17745bd2@kernel.org> In-Reply-To: References: <20230510161559.2767b27a@kernel.org> <20230511162023.3651970b@kernel.org> <20230516122205.6f198c3e@kernel.org> <87y1lojbus.fsf@nvidia.com> <20230516145010.67a7fa67@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 Tue, 16 May 2023 15:58:46 -0700 Peilin Ye wrote: > > Given Peilin's investigation I think fix without changing core may > > indeed be hard. I'm not sure if returning -EBUSY when qdisc refcnt > > is elevated will be appreciated by the users, do we already have > > similar behavior in other parts of TC? > > Seems like trying to delete an "in-use" cls_u32 filter returns -EBUSY I meant -EBUSY due to a race (another operation being in flight). I think that's different.